Fix the semantics of non-exported globals.