fix #140
add test for #124
change to package.xml to include #124 test
Merge branch 'master' of https://github.com/krakjoe/pthreads