Fixed unresolved symbol min when building under Mingw
Added some build flags for Mingw
Added win32-mingw to tundra's build file so Mingw can be used.