Updated `num-processors` to work on Mac OS.