chech for postgresql header after setting CPPFLAGS properly