Update existing uses of /wd4267 to use the GN config

This is the size_t to integer conversion warning. Using the config prevents flag duplication and is clearer to read.

Minor updates to Win64 build, including some fixes for size_t to int conversions.

Review URL: https://codereview.chromium.org/929793006

Cr-Commit-Position: refs/heads/master@{#317162}
diff --git a/crypto/BUILD.gn b/crypto/BUILD.gn
index f6c45aa..d717197 100644
--- a/crypto/BUILD.gn
+++ b/crypto/BUILD.gn
@@ -93,6 +93,9 @@
     "third_party/nss/sha512.cc",
   ]
 
+  # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+
   deps = [
     ":platform",
     "//base",
@@ -126,11 +129,6 @@
     deps += [ "//third_party/android_tools:cpu_features" ]
   }
 
-  if (is_win) {
-    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
-    cflags = [ "/wd4267" ]
-  }
-
   if (use_openssl) {
     # Remove NSS files when using OpenSSL
     sources -= [