Some work on postgresql
Fixed building postgresql_server