Improved list of search paths for libraries
Silence build warnings