Just for the record: upgrading compilers never worked for me at least for C. Yesterday I found that whatever clang I had doesn't work so I upgraded to the latest version, which can't compile mingw headers. Bummer.