merging fix #248 of krakjoe/pthreads
Merge pull request #5 from wick-ed/v1.x.x

merging fix #248 of krakjoe/pthreads