Updated pthreads to 2.0.7, fixed WeakRef