Added a missing dependency on pthreads