Move the RPATH computation into the build rules