Added hyperthread detection for linux and osx