Add -pthread.
Merge pull request #14 from gwtnb/pthread

Add -pthread.