MSVC2012 compilation fix