Could it be that your mingw is a good version, but your Windows headers (the file that you refered to) is older?