cleanup posix tools code to remove some non-watcom compilers diagnostics