fixes build system if pthreads, openmp and/or intel tbb are not available
=> fallback to sequential algorithm