cw.c: simplify implementation and use of make_ptypair.
cw.c: minimize openpty ifdeffery.
cw.c: remove some pointless ioctl's (O_CLOEXEC is off by default)