Add pthreads dependency