build is in the include path for git_version.h, so build/wx/setup.h would get included rather than $PREFIX/include/wx/setup.h.