add first stab of OpenMP for granular potentials
NOTE: the code compiles, but is yet untested.
to have a clean interface with the rest of the
code, also OMP variants for a couple of fixes
were needed, and still a few mainline files
need small modifications (i hate "friends"...),