added Win32 / mingw64 compatibility