The first two patches are needed for mapbox-gl-qml. The third patch is required when building without the vendored rapidjson.