fixes "error: 'for' loop initial declarations are only allowed in C99 mode"
or @chhitz or whoever has time to merge it :)