reapply mingw-w64 header patches
reapply mingw-w64 header patches

Fix compilation w/ clang
f83bb3dd9e68899ca39cdddb7d84c2ad1c833d55

raulgrell/zig,andrewrk/zig,raulgrell/zig,raulgrell/zig,raulgrell/zig,raulgrell/zig,zig-lang/zig,zig-lang/zig,andrewrk/zig,zig-lang/zig