Some minor fixups so it builds on Mingw
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.
Merge pull request #141 from greatwolf/master

Fixups for  Issue #140 Mingw support