Fix out-of-tree builds