Rename some globals to avoid namespace collisions