Allow any kind of functor in openmp_wrapper #6