Fixed broken compiler support for vs2010.