Further standardization of premake file, fix build errors in mingw.
Build msvc debug versions as well as release versions.
Fix MSVC build again (sigh), make mingw build both debug and release.
Debug build support for msvc11.