build: Add out-of-source archive support.