Compatibility with pthreads > 2.0.8