Use pkg-config for HTS
Try to get HTS to work when pthreads are disabled (and clean up junk)