Upgrade to a new Bazel version

This one has better performance and various new features. It also
prevents us from falling too far behind upstream.

Change-Id: I3b8e1c5bda886ea2e990523af9e6de2434c784be
diff --git a/third_party/allwpilib_2016/BUILD b/third_party/allwpilib_2016/BUILD
index edc42d5..2d789d7 100644
--- a/third_party/allwpilib_2016/BUILD
+++ b/third_party/allwpilib_2016/BUILD
@@ -50,8 +50,8 @@
 ] + ['wpilibc/shared/include/%s/**/*' % d
      for d in _excluded_shared_directories] +
  ['wpilibc/*/include/%s.h' % d for d in _excluded_devices])
-_h_hdrs = glob([d + '/**/*.h' for d in _header_dirs], _bad_hdrs)
-_hpp_hdrs = glob([d + '/**/*.hpp' for d in _header_dirs], _bad_hdrs)
+_h_hdrs = glob([d + '/**/*.h' for d in _header_dirs], exclude=_bad_hdrs)
+_hpp_hdrs = glob([d + '/**/*.hpp' for d in _header_dirs], exclude=_bad_hdrs)
 
 cc_library(
  name = 'wpilib',
@@ -65,8 +65,8 @@
    'hal/lib/Athena/cpp/*.cpp',
    'hal/lib/Athena/ctre/*.cpp',
    'hal/lib/Shared/*.cpp',
- ], (['wpilibc/shared/src/%s/**/*' % d for d in _excluded_shared_directories] +
-     ['wpilibc/*/src/%s.cpp' % d for d in _excluded_devices])),
+ ], exclude=(['wpilibc/shared/src/%s/**/*' % d for d in _excluded_shared_directories] +
+             ['wpilibc/*/src/%s.cpp' % d for d in _excluded_devices])),
  copts = [
    '-Wno-unused-parameter',
    '-Wno-switch-enum',
diff --git a/third_party/eigen/BUILD b/third_party/eigen/BUILD
index fd6f889..7012271 100644
--- a/third_party/eigen/BUILD
+++ b/third_party/eigen/BUILD
@@ -5,7 +5,7 @@
   visibility = ['//visibility:public'],
   srcs = glob(['Eigen/src/**/*.h']),
   includes = ['.'],
-  hdrs = glob(['Eigen/*'], [
+  hdrs = glob(['Eigen/*'], exclude=[
     # Stuff that we don't have the dependencies for.
     'Eigen/CholmodSupport',
     'Eigen/MetisSupport',
diff --git a/third_party/gflags/BUILD b/third_party/gflags/BUILD
index 0aec151..cffd8fe 100644
--- a/third_party/gflags/BUILD
+++ b/third_party/gflags/BUILD
@@ -31,7 +31,7 @@
   srcs = glob([
     'src/*.cc',
     'src/*.h',
-  ], [
+  ], exclude=[
     'src/windows_*',
   ]) + [
     'include/gflags/gflags_declare.h',
diff --git a/third_party/libjpeg/BUILD b/third_party/libjpeg/BUILD
index a518300..a139773 100644
--- a/third_party/libjpeg/BUILD
+++ b/third_party/libjpeg/BUILD
@@ -53,7 +53,7 @@
   ]),
   hdrs = glob([
     '*.h',
-  ], [
+  ], exclude=[
     'jmemdos.h',
     'jmemmac.h',
   ]),
diff --git a/third_party/ntcore_2016/BUILD b/third_party/ntcore_2016/BUILD
index 7e79831..acddc7f 100644
--- a/third_party/ntcore_2016/BUILD
+++ b/third_party/ntcore_2016/BUILD
@@ -6,7 +6,7 @@
   srcs = glob([
     'src/**/*.cpp',
     'src/**/*.h',
-  ], [
+  ], exclude=[
     'src/networktables/**',
   ]),
   copts = [
diff --git a/third_party/protobuf/protobuf.bzl b/third_party/protobuf/protobuf.bzl
index d91cde4..cfcb69a 100644
--- a/third_party/protobuf/protobuf.bzl
+++ b/third_party/protobuf/protobuf.bzl
@@ -90,7 +90,7 @@
         "deps": attr.label_list(providers = ["proto"]),
         "includes": attr.string_list(),
         "protoc": attr.label(
-            cfg = HOST_CFG,
+            cfg = 'host',
             executable = True,
             single_file = True,
             mandatory = True,
diff --git a/third_party/seasocks/BUILD b/third_party/seasocks/BUILD
index d85e3c3..0daf8ea 100644
--- a/third_party/seasocks/BUILD
+++ b/third_party/seasocks/BUILD
@@ -6,7 +6,7 @@
   srcs = glob(['src/main/c/**/*.cpp']),
   hdrs = glob([
     'src/main/c/**/*.h',
-  ], [
+  ], exclude=[
     'src/main/internal/**/*',
   ]),
   includes = ['src/main/c'],