Fix global variable namespace leaks.