introduce the avoidGlobals flag to the closure configuration to fix closure adding globals to the generated file; currently the flag set to true will wrap the code regardless the fact that there is or not a global.