lcw.c: assume we have openpty.