Fix cross-compilation out-of-tree build