Which version of MinGW did you use for compilation? TDM/MinGW-w64 or something else? I consider MinGW-builds (http://sourceforge.net/projects/mingwbuilds/) is the best MinGW pack.