Fix VS build problems:
* rename build -> buildfiles to avoid clashing with BUILD
* set binary mode for stdin/out in bro
* convert bro to C
diff --git a/premake5.lua b/premake5.lua
index b62abcd..8b61f90 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -3,7 +3,7 @@
 configurations { "Release", "Debug" }
 platforms { "Static", "Shared" }
 targetdir "bin"
-location "build"
+location "buildfiles"
 flags "RelativeLinks"
 
 filter "configurations:Release"
@@ -21,7 +21,10 @@
 
 configuration { "gmake" }
   buildoptions { "-Wall -fno-omit-frame-pointer" }
-  location "build/gmake"
+  location "buildfiles/gmake"
+
+configuration "linux"
+  links "m"
 
 configuration { "macosx" }
   defines { "DOS_MACOSX" }
@@ -42,6 +45,6 @@
 
 project "bro"
   kind "ConsoleApp"
-  language "C++"
-  files { "tools/bro.cc" }
+  language "C"
+  files { "tools/bro.c" }
   links { "brotli_common", "brotli_dec", "brotli_enc" }