Set tty raw mode when using a pty.

This patch fixes the use of pty-based emulated serial devices (eg, https://mac68k.info/forums/message.jspa?messageID=333#333 )