handle rpath correctly on OSX [thanks Konstantinos Theofilis]