Compilation fixes
Move this check inside bson_ensure_space