[draft] fix for pthreads v1.0.2 compatibility