Fix externals and empty variables
Cache break iterators to avoid massive Win32 slow-downs