fix compile vs2012