Fixed compiling with Visual Studio 2012 [smf]