Import from mingwrt-4.0.3-1-mingw32-src.tar.lzma.
Check necessity of conversion for msvcrt functions (wip).