fix PGSQL build