Add globals as static fields of a class, one per global.