Do not use modern for (type &var : container) loop, use old-school iterators, since the former is not supported in gcc 4.4