Fix omp

It is rebased on Basic_type so the first commit is already review in another PR.