[OpenMP][Tools][NFC] Fix C99-style declaration of iteration variables

Where possible change to declare the variable before the loop.
Where not possible, specifically request -std=c99 (could be limited to
specific compilers like icc).

GitOrigin-RevId: 38f78dd2e25aa6ae9f9e2ffdef7a600391b791fe
4 files changed