Compilation failed in VS2012