Moved GetNumCores to OS
Merge remote-tracking branch 'luomu/corecount'