scpgen make sure it compiles on VC2010
More corrections for VC2010