Enable the ability to use @rpath, etc. on Mac platforms

Pretty please? It sure would be nice to avoid extra build steps just for the Mac. The patch could be simplified of course by not bothering to check the platform if @rpath or even @ is used. But based on our previous discussions I isolated it to darwin/rhapsody.