Merge pull request #76 from esper/master

Makefile improvement, cppcheck fixes
Fixed lots of warnings in MSVC++2010

Mostly just casts
Lots and lots of casts
Fixed additional MSVC++210 warnings
Fixed compiler errors.
Fixed the first bug preventing the game to start (still does not start).