Add support for relocatable builds in the new build system