Fix ext/pgsql builds against libpq 7.3.

Fixes bug #67555 (Cannot build against libpq 7.3).