Fixed project compiling in VS2012 and above

Added a few MSVC version checks to certain areas, and I've disabled safe exception handlers. 
Initially I didn't run into any of those problems since I've never upgraded the project to VS2013, however some people did end up having problems.