fix postgres build with gcc 3.4+