fix number of processors bug on mac