Erik Hofman <erik@ehofman.com> writes:
> Well I've managed to get rid of this error message (remove old header
> files),
What do you mean by that, exactly?
If you had header files from another version of Postgres cluttering
your include path, maybe there are still some left.
regards, tom lane