Check that libs found by GCC aren't folders