configure: make jack depend on pthreads