[ninja] Cleanup globals