view: Free the header once finished
merge,sort: Output BAM, not SAM. Build indexes

instead of throwing an error.