fixing up the pthread stuff for hashtest2