build in C99 mode (remove inner for loop declaration)