gearman: Add postgresql support

Add postgresql option into gearman options. `--with-postgresql` now installs postgresql and will compile gearman with support for postgresql.