Fix builds for PostgreSQL 9.2