Fix for building on windows with mingw.

This macro is defined in the windows headers normally, but mingw's headers do not have it yet so this fixes building on windows using mingw.