fix cbson compile warnings