fix support for BAMtools 0.1.19

this builds on top of PR #315 by @pescobar