Detect number of cores on Mac OS for build-flags