Increase warning level in MSVC and fix warnings