improve compatibility of stdtbb and tbb
stdtbb backend normalize weights parallelized