Add the various sanitizers from the GYP setup

Everything doesn't build and many tests don't pass, but the basics are
there.

Change-Id: I6d1219077318d9e168a81d9c3f620a8f77c97c96
diff --git a/third_party/googletest/BUILD b/third_party/googletest/BUILD
index a424c49..f342e66 100644
--- a/third_party/googletest/BUILD
+++ b/third_party/googletest/BUILD
@@ -6,6 +6,8 @@
 # build targets here, the libraries are independent of their location in
 # a more straightforward way.
 
+load('/tools/build_rules/empty_main', 'empty_main_if_asan')
+
 licenses(["notice"])
 
 cc_library(
@@ -252,7 +254,7 @@
 
 cc_test(
 	name = "googletest_sample10_test",
-	srcs = ["googletest/samples/sample10_unittest.cc"],
+	srcs = empty_main_if_asan(["googletest/samples/sample10_unittest.cc"]),
 	deps = [
 	    ":googletest_main",
 	    ":googletest_sample_libs",
diff --git a/third_party/libevent/BUILD b/third_party/libevent/BUILD
index ee778f0..0d35bd6 100644
--- a/third_party/libevent/BUILD
+++ b/third_party/libevent/BUILD
@@ -1,6 +1,6 @@
 licenses(['notice'])
 
-load('/tools/build_rules/select', 'compiler_select', 'address_size_select', 'cpu_select')
+load('/tools/build_rules/select', 'compiler_select', 'address_size_select')
 
 cc_library(
   name = 'libevent',
@@ -158,11 +158,6 @@
       '_EVENT_SIZEOF_SIZE_T=8',
       '_EVENT_SIZEOF_VOID_P=8',
     ],
-  }) + cpu_select({
-    'amd64': [
-      '_EVENT_HAVE_TAILQFOREACH=1',
-    ],
-    'roborio': [],
   }),
 
   copts = [