Add debug vs. release build detection for MSVC.