Added checks for _OPENMP around parallel funcs