fix bson_append_finish_object, adjust bson_error_t, and eliminate VS CRT warnings.