Using old Samtools API which seems to be the one we have