fixes problems with number of threads for TBB