diff --git a/Makefile.am b/Makefile.am
index 52f529459dc37a3fa36e8b11f41b41f0a1a1ec68..6f962201386426ba5db1ea9a91104e7708dbfe02 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,13 +117,15 @@ panel_plugin_xfce4_screenshooter_plugin_CFLAGS =	\
 	-I$(top_srcdir)	\
 	-I$(top_srcdir)/lib/	\
 	@LIBXFCE4PANEL_CFLAGS@ \
+	@LIBXFCEGUI4_CFLAGS@ \
 	@GTHREAD_CFLAGS@ \
 	@SOUP_CFLAGS@
 
 panel_plugin_xfce4_screenshooter_plugin_LDFLAGS = \
 	@LIBXFCE4PANEL_LIBS@ \
 	@GTHREAD_LIBS@ \
-	@SOUP_LIBS@
+	@SOUP_LIBS@ \
+	@LIBXFCEGUI4_LIBS@
 
 panel_plugin_xfce4_screenshooter_plugin_LDADD = lib/libscreenshooter.la
 
diff --git a/panel-plugin/screenshooter-plugin.c b/panel-plugin/screenshooter-plugin.c
index 21b4e70669617986d61bb8bdc92502738435f662..b0ac32097d1e68ba13d09da6f6f305c1595edd25 100644
--- a/panel-plugin/screenshooter-plugin.c
+++ b/panel-plugin/screenshooter-plugin.c
@@ -29,8 +29,7 @@ t */
 #include <gdk/gdkx.h>
 
 #include <libxfcegui4/libxfcegui4.h>
-#include <libxfce4panel/xfce-panel-plugin.h>
-#include <libxfce4panel/xfce-panel-convenience.h>
+#include <libxfce4panel/libxfce4panel.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>