define TIOCOUTQ to FIONWRITE if it's not already defined remove XCASE from temios c_lflag because it's deprecated