remove pthreads