This OP is struggling to use MinGW, why not install VS2015 or just install Microsoft's version of clang? True, that will depend on the latest version of msvcrt.dll, but at least your source code will remain cross-platform.
As far as I know, clang should compile anything gcc would compile.
IIRC, it's not trivial to link to msvcrt.dll in VS. In older versions I think you needed to download the Windows Driver Kit to get an import lib, and since Win8 I don't think even that supplies it any more.
As far as I know, clang should compile anything gcc would compile.