Download the latest version of the <code>Windows API</code> from the MinGW <a href="http://www.mingw.org/download.shtml">download page</a> (at least <a href="http://prdownloads.sourceforge.net/mingw/w32api-3.3.tar.gz?download">3.3</a>). Extract this into your MinGW directory structure (<code>tar -xvzf /path/to/w32api-3.3.tar.gz -C /cygdrive/c/MinGW</code>) to upgrade the installed API.