build: fix building out of tree