--- a/bin/pg_reorg.c
+++ b/bin/pg_reorg.c
@@ -13,6 +13,8 @@
 const char *PROGRAM_URL		= "http://reorg.projects.postgresql.org/";
 const char *PROGRAM_EMAIL	= "reorg-general@lists.pgfoundry.org";
 
+#include <pg_config_ext.h>
+#include <postgres_ext.h>
 #include "pgut/pgut-fe.h"
 
 #include <string.h>
--- a/bin/pgut/pgut.c
+++ b/bin/pgut/pgut.c
@@ -6,6 +6,8 @@
  *-------------------------------------------------------------------------
  */
 
+#include <pg_config_ext.h>
+#include <postgres_ext.h>
 #include "postgres_fe.h"
 #include "libpq/pqsignal.h"
 
--- a/bin/pgut/pgut.h
+++ b/bin/pgut/pgut.h
@@ -17,6 +17,8 @@
 #include <unistd.h>
 #endif
 
+#include <pg_config_ext.h>
+#include <postgres_ext.h>
 #include "libpq-fe.h"
 #include "pqexpbuffer.h"
 #include "utils/elog.h"
--- a/bin/pgut/pgut-fe.c
+++ b/bin/pgut/pgut-fe.c
@@ -7,6 +7,8 @@
  */
 
 #define FRONTEND
+#include <pg_config_ext.h>
+#include <postgres_ext.h>
 #include "pgut-fe.h"
 
 #ifdef HAVE_GETOPT_H
