Add os environment to Win32 mingw build.