Fixing framework linking.

Doing it this way covers many more scenarios than just including the framework in an app.
http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/