fixed compilation with Visual Studio 2012.