Add a few missing termios functions; correct some casts

2 files changed