Make repmgr compile in 9.3.

Patch provided by Shawn Ellis with some fixes by me.