Fix build of jsoncpp.

Treehugger autosubmitted this before kokoro responded.

Test: presubmit
Bug: None
Change-Id: I0a7aba28a561f37c2d31235126b567290f5e6265
diff --git a/ports/jsoncpp/port.kts b/ports/jsoncpp/port.kts
index ba3ab70..8a3e1ba 100644
--- a/ports/jsoncpp/port.kts
+++ b/ports/jsoncpp/port.kts
@@ -31,4 +31,18 @@
     override val modules = listOf(
         Module("jsoncpp")
     )
+
+    override fun extractSource(
+        sourceTarball: File,
+        sourceDirectory: File,
+        workingDirectory: File
+    ): Result<Unit, String> =
+        super.extractSource(sourceTarball, sourceDirectory, workingDirectory)
+            .onSuccess {
+                // jsoncpp has a "version" file on the include path that
+                // conflicts with
+                // https://en.cppreference.com/w/cpp/header/version. Remove it
+                // so we can build.
+                sourceDirectory.resolve("version").delete()
+            }
 }