fixed up compile error for vs2013