Fix out of source builds