pthread: initial add
Merge pull request #694 from mehlis/pthread-module

Pthread module