eliminate the inline on the bam_write1_core function to avoid compile errors on Mac OSX
Merge remote-tracking branch: upstream/master