diff -Nur calibre.orig/src/calibre/ebooks/pdf/reflow.cpp calibre/src/calibre/ebooks/pdf/reflow.cpp
--- calibre.orig/src/calibre/ebooks/pdf/reflow.cpp 2011-09-30 11:28:44.000000000 -0600
+++ calibre/src/calibre/ebooks/pdf/reflow.cpp 2011-10-09 18:57:36.433731713 -0600
@@ -12,6 +12,7 @@
#include <splash/SplashErrorCodes.h>
#include "reflow.h"
#include "utils.h"
+#include <glib/poppler-features.h>
using namespace std;
using namespace calibre_reflow;
diff -Nur calibre.orig/src/calibre/ebooks/pdf/reflow.h calibre/src/calibre/ebooks/pdf/reflow.h
--- calibre.orig/src/calibre/ebooks/pdf/reflow.h 2011-09-30 11:28:44.000000000 -0600
+++ calibre/src/calibre/ebooks/pdf/reflow.h 2011-10-09 18:57:04.338582882 -0600
@@ -36,6 +36,7 @@
#include "fonts.h"
#include "links.h"
#include "images.h"
+#include <glib/poppler-features.h>
using namespace std;