Fix RPATH issue on OSX.