Custom changes to rapidjson lib.