Fix build error in out-of-tree build