Looks like a header file is missing from the tarball?
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/tgl/testversion/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector--param=ssp-buffer-size=4 -m64 -mtune=generic -MT loadlib.lo -MD -MP -MF .deps/loadlib.Tpo -c
loadlib.c -fPIC -DPIC -o .libs/loadlib.o
loadlib.c:19:22: error: pgenlist.h: No such file or directory
make[1]: *** [loadlib.lo] Error 1
regards, tom lane