Fix vim startup crash

Previously, this file called tgoto without it being declared, which cause it
not to work properly.

Change-Id: I9ca6e3dd60ce5fd6a8db54751ae178a306e06155
diff --git a/BUILD.gn b/BUILD.gn
index 8d109c7..8ce7f01 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -7,7 +7,6 @@
     "-Wno-unused-function",
     "-Wno-shift-op-parentheses",
     "-Wno-dangling-else",
-    "-Wno-implicit-function-declaration",
     "-Wno-int-to-pointer-cast",
   ]
 }
diff --git a/src/term.c b/src/term.c
index a9c2c57..ee78245 100644
--- a/src/term.c
+++ b/src/term.c
@@ -33,11 +33,13 @@
 #  include <termcap.h>
 # endif
 
+#include "termlib.pro"
+
 /*
  * A few linux systems define outfuntype in termcap.h to be used as the third
  * argument for tputs().
  */
-# ifdef VMS
+# if defined(VMS) || defined(__Fuchsia__)
 #  define TPUTSFUNCAST
 # else
 #  ifdef HAVE_OUTFUNTYPE