Get stuff building with newer Bazel with sandboxing

After this, a newer version of Bazel is required to build the code.
201511240708+4433fa6 is the first version which will work.

Change-Id: Ifc41f11f2f21bdcd0f5f7d142d769ea8fa15921a
diff --git a/third_party/googletest/BUILD b/third_party/googletest/BUILD
index b76b35b..a424c49 100644
--- a/third_party/googletest/BUILD
+++ b/third_party/googletest/BUILD
@@ -368,6 +368,7 @@
 cc_test(
     name = "googletest_gtest_typed_test_test",
     srcs = [
+        "googletest/test/gtest-typed-test_test.h",
         "googletest/test/gtest-typed-test_test.cc",
     ],
     deps = [
@@ -378,6 +379,7 @@
 cc_test(
     name = "googletest_gtest_typed_test2_test",
     srcs = [
+        "googletest/test/gtest-typed-test_test.h",
         "googletest/test/gtest-typed-test2_test.cc",
     ],
     deps = [
@@ -402,6 +404,7 @@
 cc_test(
     name = "googletest_gtest_production_test",
     srcs = [
+        "googletest/test/production.h",
         "googletest/test/production.cc",
     ],
     deps = [
@@ -534,6 +537,7 @@
 cc_test(
     name = "googlemock_gmock_link2_test",
     srcs = [
+        "googlemock/test/gmock_link_test.h",
         "googlemock/test/gmock_link2_test.cc",
     ],
     deps = [
diff --git a/third_party/libevent/BUILD b/third_party/libevent/BUILD
index 97c4fe2..4a05b48 100644
--- a/third_party/libevent/BUILD
+++ b/third_party/libevent/BUILD
@@ -33,12 +33,14 @@
 
     'evthread_pthread.c',
 
-    'include/event2/event-config.h',
-
     #'compat/sys/queue.h',
   ] + glob([
     '*-internal.h',
+    'include/event2/*.h',
   ]),
+  textual_hdrs = [
+    'arc4random.c',
+  ],
   hdrs = [
     'event.h',
     'evhttp.h',