build tests with -O1 like the docs recommend (they run twice as fast)
diff --git a/aos/build/build.py b/aos/build/build.py
index b35a02f..5d7011d 100755
--- a/aos/build/build.py
+++ b/aos/build/build.py
@@ -189,6 +189,8 @@
         r['ASAN_OPTIONS'] = 'detect_leaks=1:check_initialization_order=1:strict_init_order=1'
       elif self.sanitizer == 'memory':
         r['MSAN_SYMBOLIZER_PATH'] = '/opt/clang-3.5/bin/llvm-symbolizer'
+      elif self.sanitizer == 'thread':
+        r['TSAN_OPTIONS'] = 'external_symbolizer_path=/opt/clang-3.5/bin/llvm-symbolizer'
 
       r['CCACHE_COMPRESS'] = 'yes'
       r['CCACHE_DIR'] = \
@@ -202,7 +204,6 @@
       # system finishes modifying header files before compiling anything that
       # uses them.
       r['CCACHE_SLOPPINESS'] = 'include_file_mtime'
-      r['CCACHE_COMPILERCHECK'] = 'content'
 
       if self.architecture == 'amd64':
         r['PATH'] = os.path.join(aos_path(), 'build', 'bin-ld.gold') + \