1diff --git a/src/appearance.c b/src/appearance.c
2index 4fb3f0c..7ae9cab 100644
3--- a/src/appearance.c
4+++ b/src/appearance.c
5@@ -20,6 +20,7 @@
6 #include "main.h"
7 #include "tree.h"
8 #include "preview_update.h"
9+#include <ctype.h>
10
11 static gboolean mapping = FALSE;
12
13diff --git a/src/desktops.h b/src/desktops.h
14index 1ba3e36..968595e 100644
15--- a/src/desktops.h
16+++ b/src/desktops.h
17@@ -22,6 +22,7 @@
18
19 #include <gtk/gtk.h>
20
21+void desktops_setup_tab();
22 void desktops_setup_num(GtkWidget *w);
23 void desktops_setup_names(GtkWidget *w);
24
25diff --git a/src/main.c b/src/main.c
26index d7e3446..fdfae54 100644
27--- a/src/main.c
28+++ b/src/main.c
29@@ -28,6 +28,8 @@
30 #include "dock.h"
31 #include "preview_update.h"
32 #include "gettext.h"
33+#include "desktops.h"
34+#include "moveresize.h"
35
36 #include <gdk/gdkx.h>
37 #define SN_API_NOT_YET_FROZEN