bcf_index_build: Check return status of helper calls
Merge branch 'develop' of github.com:samtools/htslib into develop