fix some openmp pragma's

the given pragma's break with my gcc (4.6.3).

e.g.

/home/akva/kode/opm/master/opm-core/src/opm-core/opm/core/grid/cpgpreprocess/geometry.c:58:192: error: ‘ndims’ is predetermined ‘shared’ for ‘firstprivate’