added function to return max cpu freq on mac