cd /path/to/angsd/htslib wget https://github.com/samtools/htslib/releases/download/1.16/htslib-1.16.tar.bz2
tar -xvf htslib-1.16.tar.bz2 cd htslib-1.16
./configure make -j && make install