Fixed issue when looking for win32 platform when running under mingw32