don't break pre-C99 builds with `for` declarations

declaring variables in the `for` loops initialisation field wasn't supported
until C99. not being C89 compliant is of course a big CS no-no. fixes #3.