Fix MinGW build

Are you sure? This should work on Mingw too, if it's just a Win32 call.