gcc: range-based for removed to compile on gcc-4.4