Use phtreads with clang++.
Merge branch 'bug014-pthreads' (closes #14).