Use termios for all Unixen.

termio is deprecated on Linux.
termios is specified in POSIX from 1990, so we should use it
everywhere.  We now use tcgetattr / tcsetattr instead of ioctl calls.
These should be usable on all the Unix systems we currently support.