Added tracking of unused globals when defining globals is allowed(-d)