fixed numberofcores for OSX