Fix some portability problems (get it to compile, at least, on HP's cc)
Fix some portability problems (get it to compile, at least, on HP's cc)

tangp3/gpdb,edespino/gpdb,ahachete/gpdb,techdragon/Postgres-XL,cjcjameson/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,xuegang/gpdb,jmcatamney/gpdb,rubikloud/gpdb,0x0FFF/gpdb,rvs/gpdb,Quikling/gpdb,yuanzhao/gpdb,edespino/gpdb,foyzur/gpdb,cjcjameson/gpdb,rvs/gpdb,kmjungersen/PostgresXL,greenplum-db/gpdb,rubikloud/gpdb,chrishajas/gpdb,rvs/gpdb,royc1/gpdb,randomtask1155/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,CraigHarris/gpdb,lisakowen/gpdb,jmcatamney/gpdb,randomtask1155/gpdb,lisakowen/gpdb,50wu/gpdb,atris/gpdb,Quikling/gpdb,jmcatamney/gpdb,ahachete/gpdb,zeroae/postgres-xl,lintzc/gpdb,tangp3/gpdb,rvs/gpdb,0x0FFF/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,tangp3/gpdb,Postgres-XL/Postgres-XL,foyzur/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,zaksoup/gpdb,lintzc/gpdb,Chibin/gpdb,ashwinstar/gpdb,yazun/postgres-xl,ahachete/gpdb,lintzc/gpdb,chrishajas/gpdb,chrishajas/gpdb,ahachete/gpdb,adam8157/gpdb,lintzc/gpdb,xuegang/gpdb,jmcatamney/gpdb,adam8157/gpdb,pavanvd/postgres-xl,jmcatamney/gpdb,Chibin/gpdb,royc1/gpdb,postmind-net/postgres-xl,CraigHarris/gpdb,foyzur/gpdb,cjcjameson/gpdb,CraigHarris/gpdb,50wu/gpdb,kaknikhil/gpdb,janebeckman/gpdb,oberstet/postgres-xl,zaksoup/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,chrishajas/gpdb,arcivanov/postgres-xl,adam8157/gpdb,pavanvd/postgres-xl,Quikling/gpdb,lintzc/gpdb,snaga/postgres-xl,Quikling/gpdb,foyzur/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,lpetrov-pivotal/gpdb,ahachete/gpdb,xuegang/gpdb,zaksoup/gpdb,royc1/gpdb,kmjungersen/PostgresXL,CraigHarris/gpdb,edespino/gpdb,Chibin/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,atris/gpdb,edespino/gpdb,ovr/postgres-xl,rvs/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,chrishajas/gpdb,greenplum-db/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,Quikling/gpdb,xuegang/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,rvs/gpdb,edespino/gpdb,0x0FFF/gpdb,Chibin/gpdb,pavanvd/postgres-xl,yazun/postgres-xl,lintzc/gpdb,tangp3/gpdb,adam8157/gpdb,xuegang/gpdb,50wu/gpdb,randomtask1155/gpdb,zaksoup/gpdb,atris/gpdb,CraigHarris/gpdb,techdragon/Postgres-XL,tangp3/gpdb,yuanzhao/gpdb,xinzweb/gpdb,Chibin/gpdb,cjcjameson/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,lisakowen/gpdb,Chibin/gpdb,yuanzhao/gpdb,xinzweb/gpdb,xinzweb/gpdb,tpostgres-projects/tPostgres,oberstet/postgres-xl,randomtask1155/gpdb,atris/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,zeroae/postgres-xl,janebeckman/gpdb,greenplum-db/gpdb,Chibin/gpdb,royc1/gpdb,lisakowen/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,rvs/gpdb,ovr/postgres-xl,atris/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,oberstet/postgres-xl,oberstet/postgres-xl,edespino/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,chrishajas/gpdb,rvs/gpdb,janebeckman/gpdb,50wu/gpdb,yuanzhao/gpdb,lpetrov-pivotal/gpdb,edespino/gpdb,ashwinstar/gpdb,snaga/postgres-xl,50wu/gpdb,chrishajas/gpdb,Quikling/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,Quikling/gpdb,ovr/postgres-xl,50wu/gpdb,oberstet/postgres-xl,ovr/postgres-xl,kmjungersen/PostgresXL,arcivanov/postgres-xl,yuanzhao/gpdb,Quikling/gpdb,lisakowen/gpdb,xuegang/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,tangp3/gpdb,tpostgres-projects/tPostgres,xinzweb/gpdb,tangp3/gpdb,greenplum-db/gpdb,xuegang/gpdb,cjcjameson/gpdb,edespino/gpdb,rvs/gpdb,ovr/postgres-xl,adam8157/gpdb,arcivanov/postgres-xl,Chibin/gpdb,zaksoup/gpdb,snaga/postgres-xl,royc1/gpdb,lintzc/gpdb,chrishajas/gpdb,postmind-net/postgres-xl,yazun/postgres-xl,ahachete/gpdb,50wu/gpdb,foyzur/gpdb,arcivanov/postgres-xl,ahachete/gpdb,xinzweb/gpdb,rubikloud/gpdb,kaknikhil/gpdb,lintzc/gpdb,rubikloud/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,ashwinstar/gpdb,zaksoup/gpdb,foyzur/gpdb,lisakowen/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,zaksoup/gpdb,rubikloud/gpdb,atris/gpdb,0x0FFF/gpdb,zaksoup/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,Quikling/gpdb,Quikling/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,arcivanov/postgres-xl,0x0FFF/gpdb,snaga/postgres-xl,janebeckman/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,pavanvd/postgres-xl,royc1/gpdb,lpetrov-pivotal/gpdb,50wu/gpdb,ahachete/gpdb,adam8157/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,atris/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,randomtask1155/gpdb,janebeckman/gpdb,ashwinstar/gpdb,zeroae/postgres-xl,kaknikhil/gpdb,lintzc/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,adam8157/gpdb,rubikloud/gpdb,tpostgres-projects/tPostgres,CraigHarris/gpdb,yuanzhao/gpdb,atris/gpdb,yazun/postgres-xl,Chibin/gpdb,pavanvd/postgres-xl,kaknikhil/gpdb,cjcjameson/gpdb,xuegang/gpdb,rubikloud/gpdb,foyzur/gpdb,xuegang/gpdb,royc1/gpdb,tpostgres-projects/tPostgres,edespino/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,rvs/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,foyzur/gpdb,rubikloud/gpdb,CraigHarris/gpdb,royc1/gpdb,yazun/postgres-xl