Final batch of changes for MSVC 2012. AntiMicro should compile and run properly now.