- fix warnings for missing prototypes - use termios instead of sgtty (why doesn't this work on amd64?)