Change for loops to use C99 variable declaration.

This is part of the OpenMP series.
Constantize a few more parameters and variables.

This helps the OpenMP code generation.