[PATCH v6 1/5] msvcrt: implement missing CRT functions to fix ChessBase 14 crash