Uses now BOOST_FOREACH where it is possible