Linux and apple rpath stuff
Fix broken permissions after install