Change optimization level in MSVC.

Added code to automatically change the optimization level in Visual
Studio to maximum optimization for Release builds.