backport cpuboost from 3.4 (thx@Derteufel)