updates for PGServer
updated PGServer to compile
added mac building support
updated