- fix compilation for gcc 4.1.2
- reduce dependency of mate info fixing on BamAlignment class towards operating on a BAM memory block