Modify the setup script to work on linux.

This breaks macos for the time-being.. but there seems to be no good
cross-platform way to do this because the mac does *weird* things with rpath.