gprepairmirrorseg: fix compile errors
gprepairmirrorseg: fix compile errors

This utility is slated for removal in v6. It is unused in general.
Fix obvious compile errors and basic logic for logging.

Signed-off-by: Shoaib Lari <ad045e028025f2970ed8506438710c2da1df61d5@pivotal.io>

50wu/gpdb,ashwinstar/gpdb,xinzweb/gpdb,cjcjameson/gpdb,50wu/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,xinzweb/gpdb,jmcatamney/gpdb,xinzweb/gpdb,Chibin/gpdb,lisakowen/gpdb,50wu/gpdb,adam8157/gpdb,janebeckman/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,lisakowen/gpdb,ashwinstar/gpdb,janebeckman/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,50wu/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,adam8157/gpdb,adam8157/gpdb,xinzweb/gpdb,xinzweb/gpdb,edespino/gpdb,ashwinstar/gpdb,adam8157/gpdb,edespino/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,Chibin/gpdb,50wu/gpdb,edespino/gpdb,50wu/gpdb,xinzweb/gpdb,xinzweb/gpdb,ashwinstar/gpdb,lisakowen/gpdb,cjcjameson/gpdb,lisakowen/gpdb,edespino/gpdb,janebeckman/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,janebeckman/gpdb,cjcjameson/gpdb,janebeckman/gpdb,edespino/gpdb,Chibin/gpdb,edespino/gpdb,janebeckman/gpdb,yuanzhao/gpdb,janebeckman/gpdb,adam8157/gpdb,50wu/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,adam8157/gpdb,Chibin/gpdb,Chibin/gpdb,yuanzhao/gpdb,lisakowen/gpdb,edespino/gpdb,Chibin/gpdb,janebeckman/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,lisakowen/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,Chibin/gpdb,lisakowen/gpdb,cjcjameson/gpdb,janebeckman/gpdb,edespino/gpdb,edespino/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,edespino/gpdb,yuanzhao/gpdb,Chibin/gpdb,lisakowen/gpdb,jmcatamney/gpdb,xinzweb/gpdb,yuanzhao/gpdb,adam8157/gpdb,jmcatamney/gpdb,janebeckman/gpdb,yuanzhao/gpdb,Chibin/gpdb,ashwinstar/gpdb,Chibin/gpdb,adam8157/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,50wu/gpdb