fix some msvc warnings, fix shutdown crash, fix ff7 dat tool overflowing stack before main
Merge branch 'master' of https://github.com/paulsapps/q-gears