Fix `for` loop declaration for old gcc.