Added hyperthread detection for linux and osx - fixed linux bug