fix(build): number of core detection on OSX

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>