Add support for out-of-source build and install