Use OpenMP instead of pthreads.