Handle RPATH correctly on OSX

[thanks Konstantinos Theofilis]