Report startup status correctly

This patch uses the -w option with pg_ctl on startup so the exit code is reported correctly back via XPC. Previously, pg_ctl  exited immediately with 0 (=success) and we did not now if the postgres server actually started or not. Now we do at the cost of waiting on startup.