fix compile in vs2012