Fixed MSVC2012 warnings