compile as C99
clean up termios flag stuff a bit
define _DEFAULT_SOURCE for cfmakeraw on glibc
clean up includes a bit