Revert changes to bgzf code made on SAM/BAM branch