support pty on NetBSD