Fixes for rapidjson.