Ensure build_globals has access to the right dunder objects