hts requires -lpthread on some versions of gcc