Fixed codegen for openmp loops