Created attachment 625656 [details] [diff] [review]
mingw in mingw-w64 version has limited support for wmain entry point, which was introduced by bug 753123. It requires explicit -municode in linker options and explicit extern "C" in source. The attached patch takes care of that.
Thanks for quick review!