Change RPATH to the executable's path on Mac and Linux.