fixed vs2012 compatibility