- Disable multi threading flag (MT). Standard MinGW will probably work
- Compile with MinGW-TDM (http://www.tdragon.net/recentgcc/). This is more advanced than the official MinGW, the install is very easy (with installer) and it has demonstrated to work well. I advise you to use it.