Merge pull request #360 from RoyHP/master

Fixed double checking (checking checking for ZTS... configure: error: ...)
fix leak in Collectable
Merge branch 'master' of https://github.com/krakjoe/pthreads