C 11 conversion

debug.cpp used a lot of raw char buffers. I made some headway converting it to use std::string.

Also went through and ripped out the old visual studio 2008 #if's