mingw is used to build QEMU from source on Windows.
Go to MinGW download page, download mingw-get-inst-20101030.exe, and run the installer.
Use pre-packaged repository cataloguse 20101030
select "C Compiler", "MSYS Basic System" and "MinGW Developer ToolKit"