fix for pthread issue on linux
Merge pull request #5 from kreczko/fixing_pthread_issue

fix for pthread issue on linux