diff --git a/dmenu.c b/dmenu.c
index 6f97e68..6e61dc3 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -67,9 +67,6 @@ static Clr *scheme[SchemeLast];
 
 #include "config.h"
 
-static int (*fstrncmp)(const char *, const char *, size_t) = strncmp;
-static char *(*fstrstr)(const char *, const char *) = strstr;
-
 static unsigned int
 textw_clamp(const char *str, unsigned int n)
 {
@@ -96,6 +93,9 @@ static void run(void);
 static void setup(void);
 static void usage(void);
 
+static int (*fstrncmp)(const char *, const char *, size_t) = strncmp;
+static char *(*fstrstr)(const char *, const char *) = strstr;
+
 #include "patch/include.c"
 
 static void
@@ -672,7 +672,6 @@ static void
 run(void)
 {
 	XEvent ev;
-
 	while (!XNextEvent(dpy, &ev)) {
 		if (XFilterEvent(&ev, win))
 			continue;
diff --git a/patch/include.h b/patch/include.h
index c3cb75b..8cbecb8 100644
--- a/patch/include.h
+++ b/patch/include.h
@@ -4,6 +4,9 @@
 #if FZFEXPECT_PATCH
 #include "fzfexpect.h"
 #endif
+#if INPUTMETHOD_PATCH
+#include "inputmethod.h"
+#endif
 #if MULTI_SELECTION_PATCH
 #include "multiselect.h"
 #endif