Add very basic support for out-of-tree builds.