[PATCH] Fix the list of directories searched for object files and libraries.