Fix compilation for Visual Studio 2012