[Bug 27739] build in a separate directory includes config.h from source directory