Use @rpath for libraries rather than @executable_path on OSX.

Patch by Benjamin Scarlet!