fixed incompatibility with pthreads v1.0.2