Fixed PostgreSQL configuration and build options