Synchronize GN build configuration with Chrome

This is necessary to roll newer version of Native Client. We also
had to roll in new version of Gn as well as other third party libraries
to resolve various compilation issues.

BUG= https://github.com/domokit/mojo/issues/396
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/1418653002 .
diff --git a/BUILD.gn b/BUILD.gn
index 38d5e0d..089610f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1426,7 +1426,7 @@
       "android/java/src/org/chromium/base/metrics/RecordUserAction.java",
     ]
 
-    deps = [
+    public_deps = [
       ":android_runtime_jni_headers",
     ]