activate pthread in global.h if openmp is not found