Eliminate compiler warnings in a cross-platform safe way.
Tweak comments a bit.
Add unit test for bam_translate (WIP)