Cygwin pty support for non cygwin applications from Meadow (http://www.meadowy.org/meadow/log/trunk/nt/fakecygpty.c)