Fix MSVC12 warnings