Fix windows 2010 and 2012 build errors.