Index: DBD-Pg-3.7.4/Pg.h
--- DBD-Pg-3.7.4/Pg.h.orig	2015-01-04 18:30:01.000000000 +0100
+++ DBD-Pg-3.7.4/Pg.h	2016-12-19 20:43:51.104884000 +0100
@@ -8,6 +8,7 @@
 
 */
 
+#include <stdlib.h>
 #include <wchar.h>
 
 #ifdef WIN32
Index: DBD-SQLite-1.52/Makefile.PL
--- DBD-SQLite-1.52/Makefile.PL.orig	2016-04-21 15:44:34.000000000 +0200
+++ DBD-SQLite-1.52/Makefile.PL	2016-12-19 20:44:27.216970000 +0100
@@ -23,46 +23,9 @@
 	return @_;
 }
 
-# Are we upgrading from a critically out of date version?
-eval {
-	require DBD::SQLite;
-	if ( $DBD::SQLite::VERSION < 1.0 ) {
-		print <<EOT;
-
-**** WARNING **** WARNING **** WARNING **** WARNING **** WARNING ****
-
-Your version of DBD::SQLite currently installed ($DBD::SQLite::VERSION) uses
-the old sqlite database format. This version of DBD::SQLite will *NOT*
-open these files, and installing this module may cause problems on your
-system. If this is a live environment you should upgrade with caution.
-
-To upgrade a database, download and install both sqlite 2.x and 3.x from
-http://www.sqlite.org/ and issue:
-
-  sqlite OLD.DB .dump | sqlite3 NEW.DB
-
-DBD::SQLite will NOT automatically upgrade a database for you, and using
-this version against an old SQLite database WILL lead to database
-corruption.
-
-EOT
-		if ( prompt("Continue?", "N") !~ /^y/i ) {
-			print "Exiting\n";
-			exit(-1);
-		}
-	}
-};
-
 # Because DBI generates a postamble at configure-time, we need
 # the required version of DBI very early.
 my $DBI_required = 1.57;
-eval {
-	require DBI;
-};
-if ( $@ or DBI->VERSION < $DBI_required ) {
-	print "DBI $DBI_required is required to configure this module; please install it or upgrade your CPAN/CPANPLUS shell.\n";
-	exit(0);
-}
 
 # See if we have a C compiler
 # The following code is adapted from Module::Install::Can
@@ -212,17 +175,17 @@
 # Prepare Compiler Options
 
 my @CC_LIBS = ();
-if ( $sqlite_lib ) {
-	push @CC_LIBS, "-L$sqlite_lib";
-}
-unless ( $sqlite_local ) {
-	push @CC_LIBS, '-lsqlite3';
-}
+my $libs = `@l_prefix@/bin/pkg-config sqlite3 --libs`;
+$libs =~ s/\r?\n$//s;
+push @CC_LIBS, $libs;
 
+my $inc = `@l_prefix@/bin/pkg-config sqlite3 --cflags-only-I`;
+$inc =~ s/\r?\n$//s;
 my @CC_INC = (
 	'-I.',
 	'-I$(DBI_INSTARCH_DIR)',
 );
+unshift @INC, $inc;
 if ( $sqlite_inc ) {
 	push @CC_INC, "-I$sqlite_inc";
 }
Index: DBD-SQLite-1.52/SQLiteXS.h
--- DBD-SQLite-1.52/SQLiteXS.h.orig	2016-04-21 15:44:34.000000000 +0200
+++ DBD-SQLite-1.52/SQLiteXS.h	2016-12-19 20:43:51.103618000 +0100
@@ -19,6 +19,5 @@
 #include <dbd_xsh.h>
 
 #include "sqlite3.h"
-#include "fts3_tokenizer.h"
 
 #endif
Index: DBD-mysql-4.045/dbdimp.h
--- DBD-mysql-4.045/dbdimp.h.orig	2016-11-08 14:30:17.000000000 +0100
+++ DBD-mysql-4.045/dbdimp.h	2016-12-19 20:43:51.104620000 +0100
@@ -18,6 +18,7 @@
  *  Header files we use
  */
 #include <DBIXS.h>  /* installed by the DBI module                        */
+#include <my_global.h>
 #include <mysql.h>  /* Comes with MySQL-devel */
 #include <mysqld_error.h>  /* Comes MySQL */
 
Index: SQL-Abstract-1.75/Makefile.PL
--- SQL-Abstract-1.75/Makefile.PL.orig	2013-12-26 11:52:08.000000000 +0100
+++ SQL-Abstract-1.75/Makefile.PL	2016-12-19 20:43:51.104998000 +0100
@@ -17,15 +17,15 @@
 
 requires 'List::Util'   => 0;
 requires 'Scalar::Util' => 0;
-requires 'Class::Accessor::Grouped' => 0.10005;
+# requires 'Class::Accessor::Grouped' => 0.10005;
 requires 'Getopt::Long::Descriptive' => 0.091;
 requires 'Hash::Merge' => 0.12;
 
-test_requires "Test::More"      => 0.92;
-test_requires "Test::Exception" => 0;
-test_requires "Test::Warn"      => 0;
-test_requires "Test::Deep"      => '0.101';
-test_requires "Storable"        => 0;   # for cloning in tests
+# test_requires "Test::More"      => 0.92;
+# test_requires "Test::Exception" => 0;
+# test_requires "Test::Warn"      => 0;
+# test_requires "Test::Deep"      => '0.101';
+# test_requires "Storable"        => 0;   # for cloning in tests
 
 no_index package => 'DBIx::Class::Storage::Debug::PrettyPrint';
 no_index directory => 'examples';
Index: SQL-Translator-0.11007/Makefile.PL
--- SQL-Translator-0.11007/Makefile.PL.orig	2010-11-30 18:26:37.000000000 +0100
+++ SQL-Translator-0.11007/Makefile.PL	2016-12-19 20:43:51.104752000 +0100
@@ -14,7 +14,7 @@
     'Carp::Clan'               => 0,
     'IO::Dir'                  => 0,
     'IO::Scalar'               => 2.110,
-    'Parse::RecDescent'        => 1.962002,
+    'Parse::RecDescent'        => 1.962,
     'Pod::Usage'               => 0,
     'Class::Accessor::Fast'    => 0,
     'DBI'                      => 0,
@@ -33,13 +33,6 @@
     'Text::RecordParser'       => 0.02,
     'XML::LibXML'              => 1.69,
   },
-  test_requires => {
-    'YAML'                     => 0.66,
-    'File::Basename'           => 0,
-    'Test::More'               => 0.6,
-    'Test::Differences'        => 0,
-    'Test::Exception'          => 0,
-  },
 };
 
 perl_version '5.005';
