Fix finding libraries in OSX

OSX has no ldconfig. Instead we search the user's DYLD_LIBRARY_PATH
Merge pull request #61 from capdevc/cc-osxfix

Fix finding libraries in OSX.