Pull in Texinfo 5.x compatibility fixes from upstream.
Do not re-define gets() on SunOS, incompatible prototype.