fix namespace violations in termios.h, at least mostly