additions to the API and a complete rewrite of the way a pty is allocated,
and the use of openpty() in *BSD to open the allocated pty, and other bug
fixes.
We had to fix Makefile.PL to correctly invoke the preprocessor. The changes
have been forwarded to the author.
This closes pkg/15896 by Shell Hung <shell@shellhung.org>.