HW_AVAILCPU is only defined on OS X but other BSDs
FreeBSD: malloc.h has been replaced by stdlib.h