Convert samtools master to samtools 0.1.20 -- final version without htslib. Fixed #501