Consider $PWD when searching for library names with no path included. This is unlike what ld-linux does.