Fix QtScriptGenerator to build with VS2010.