Index: gedit-cossa-3.2.0/configure.ac
===================================================================
--- gedit-cossa-3.2.0.orig/configure.ac
+++ gedit-cossa-3.2.0/configure.ac
@@ -33,6 +33,7 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GE
 PKG_CHECK_MODULES(COSSA,
                   [ gtk+-3.0 >= 3.2
                     gedit >= 3.0
+		     cairo
                   ])
 
 AC_SUBST(COSSA_CFLAGS)
Index: gedit-cossa-3.2.0/src/Makefile.am
===================================================================
--- gedit-cossa-3.2.0.orig/src/Makefile.am
+++ gedit-cossa-3.2.0/src/Makefile.am
@@ -37,8 +37,8 @@ cossa_standalone_previewer_SOURCES = \
 	cossa-application.h          \
 	cossa-main.c
 
-cossa_standalone_previewer_LDFLAGS = $(COSSA_FLAGS)
-cossa_standalone_previewer_LDADD = $(COSSA_LIBS) libcossa-common.la
+cossa_standalone_previewer_LDFLAGS = $(COSSA_CFLAGS)
+cossa_standalone_previewer_LDADD = libcossa-common.la $(COSSA_LIBS)
 
 plugin_in_files = cossa.plugin.desktop.in
 
