fix compilation issues for ENABLE_OPENMP=OFF