supporting mingw32 and win32 system

supporting mingw32 and win32 system