Fix separate builddir build.