In bug 919374 we noticed a build failure which turned out to be in the bundled rapidjson, which is already fixed in dev-libs/rapidjson; please unbundle rapidjson.