BSON utils build fixes/compiler warnings