running configure --with-libgpg-error-prefix=prefix doesn't cause a command line
option of -I prefix/include for gcc. So building gpg uses the gpg-error.h in
/usr/include if available.
Workaround is to put CC="gcc -Iprefix/include" on the command line before the
configure.
(this is on a gentoo linux box)