Modify to allow out-of-tree builds