[CAMEL-7126] Fixed BAM example compilation errors.