termios tweaks as osx ones are longs