build: try to fix the build when srcdir != builddir