Add hyperthread detection on Mac OS X. #4516