Fix linking to external libraries outside of project folder
Improve processing of ld.so.conf (Cameron Hart)