use _SC_NPROCESSORS_CONF for detecting processor count
Merge remote-tracking branch 'upstream/master' into next