Fixing PGSQL build