Fix error cpufreq when building