Fix compilation without menu-cache.