Fix the following two issues in pgxc_ctl for release 1.2.

May need similar fix in the master as well.

1) Duplicate tpedef from libpq and pgxc_ctl
2) Implicit definition of createLocalFileName() function.