+--- perl-5.24.1/cpan/Compress-Raw-Bzip2/Makefile.PL
++++ perl-5.24.1/cpan/Compress-Raw-Bzip2/Makefile.PL
+@@ -3,6 +3,7 @@
+ use strict ;
+ require 5.006 ;
+ 
++use lib '.';
+ use private::MakeUtil;
+ use ExtUtils::MakeMaker 5.16 ;
+ 
+--- perl-5.24.1/cpan/Compress-Raw-Zlib/Makefile.PL
++++ perl-5.24.1/cpan/Compress-Raw-Zlib/Makefile.PL
+@@ -3,6 +3,7 @@
+ use strict ;
+ require 5.006 ;
+ 
++use lib '.';
+ use private::MakeUtil;
+ use ExtUtils::MakeMaker 5.16 ;
+ use ExtUtils::Install (); # only needed to check for version
+--- perl-5.24.1/cpan/IO-Compress/Makefile.PL
++++ perl-5.24.1/cpan/IO-Compress/Makefile.PL
+@@ -5,6 +5,7 @@ require 5.006 ;
+ 
+ $::VERSION = '2.069' ;
+ 
++use lib '.';
+ use private::MakeUtil;
+ use ExtUtils::MakeMaker 5.16 ;
+ 
+--- perl-5.24.1/cpan/Digest-MD5/MD5.xs
++++ perl-5.24.1/cpan/Digest-MD5/MD5.xs
+@@ -156,7 +156,7 @@ STATIC int dup_md5_ctx(pTHX_ MAGIC *mg, CLONE_PARAMS *params)
+ #endif
+ 
+ #if defined(MGf_DUP) && defined(USE_ITHREADS)
+-const STATIC MGVTBL vtbl_md5 = {
++STATIC const MGVTBL vtbl_md5 = {
+     NULL, /* get */
+     NULL, /* set */
+     NULL, /* len */
+@@ -168,7 +168,7 @@ const STATIC MGVTBL vtbl_md5 = {
+ };
+ #else
+ /* declare as 5 member, not normal 8 to save image space*/
+-const STATIC struct {
++STATIC const struct {
+ 	int (*svt_get)(SV* sv, MAGIC* mg);
+ 	int (*svt_set)(SV* sv, MAGIC* mg);
+ 	U32 (*svt_len)(SV* sv, MAGIC* mg);
+@@ -788,7 +788,7 @@ md5(...)
+     PPCODE:
+ 	MD5Init(&ctx);
+ 
+-	if (PL_dowarn & G_WARN_ON) {
++	if ((PL_dowarn & G_WARN_ON) || ckWARN(WARN_SYNTAX)) {
+             const char *msg = 0;
+ 	    if (items == 1) {
+ 		if (SvROK(ST(0))) {
+--- perl-5.24.1/dist/PathTools/Cwd.xs
++++ perl-5.24.1/dist/PathTools/Cwd.xs
+@@ -424,7 +424,7 @@ int Perl_getcwd_sv(pTHX_ SV *sv)
+ #endif
+ 
+ #if USE_MY_CXT
+-# define MY_CXT_KEY "Cwd::_guts"XS_VERSION
++# define MY_CXT_KEY "Cwd::_guts" XS_VERSION
+ typedef struct {
+     SV *empty_string_sv, *slash_string_sv;
+ } my_cxt_t;
+--- perl-5.24.1/dist/PathTools/Makefile.PL
++++ perl-5.24.1/dist/PathTools/Makefile.PL
+@@ -1,5 +1,5 @@
+ 
+-BEGIN { @INC = grep {!/blib/} @INC }
++BEGIN { @INC = grep { $_ ne "blib/arch" and $_ ne "blib/lib" } @INC }
+ 
+ require 5.005;
+ use ExtUtils::MakeMaker;
+--- perl-5.24.1/dist/Time-HiRes/Makefile.PL
++++ perl-5.24.1/dist/Time-HiRes/Makefile.PL
+@@ -290,6 +290,7 @@ sub has_clock_xxx_syscall {
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
++#include <time.h>
+ #include <$SYSCALL_H>
+ int main(int argc, char** argv)
+ {
+@@ -309,6 +310,7 @@ sub has_clock_xxx {
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
++#include <time.h>
+ int main(int argc, char** argv)
+ {
+     struct timespec ts;
+@@ -325,6 +327,7 @@ sub has_clock {
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
++#include <time.h>
+ int main(int argc, char** argv)
+ {
+     clock_t tictoc;
+--- perl-5.24.1/ext/POSIX/POSIX.xs
++++ perl-5.24.1/ext/POSIX/POSIX.xs
+@@ -1208,7 +1208,7 @@ static void S_setpayload(NV* nvp, NV_PAYLOAD_TYPE payload, bool signaling)
+ #endif
+ #ifdef NV_PAYLOAD_DEBUG
+   for (i = 0; i < (int)C_ARRAY_LENGTH(a); i++) {
+-    Perl_warn(aTHX_ "a[%d] = 0x%"UVxf"\n", i, a[i]);
++    Perl_warn(aTHX_ "a[%d] = 0x%" UVxf "\n", i, a[i]);
+   }
+ #endif
+   for (i = 0; i < (int)sizeof(p); i++) {
+@@ -1219,7 +1219,7 @@ static void S_setpayload(NV* nvp, NV_PAYLOAD_TYPE payload, bool signaling)
+       ((U8 *)(nvp))[i] &= ~m[i]; /* For NaNs with non-zero payload bits. */
+       ((U8 *)(nvp))[i] |= b;
+ #ifdef NV_PAYLOAD_DEBUG
+-      Perl_warn(aTHX_ "set p[%2d] = %02x (i = %d, m = %02x, s = %2d, b = %02x, u = %08"UVxf")\n", i, ((U8 *)(nvp))[i], i, m[i], s, b, u);
++      Perl_warn(aTHX_ "set p[%2d] = %02x (i = %d, m = %02x, s = %2d, b = %02x, u = %08" UVxf ")\n", i, ((U8 *)(nvp))[i], i, m[i], s, b, u);
+ #endif
+       a[p[i] / UVSIZE] &= ~u;
+     }
+@@ -1236,7 +1236,7 @@ static void S_setpayload(NV* nvp, NV_PAYLOAD_TYPE payload, bool signaling)
+ #endif
+   for (i = 0; i < (int)C_ARRAY_LENGTH(a); i++) {
+     if (a[i]) {
+-      Perl_warn(aTHX_ "payload lost bits (%"UVxf")", a[i]);
++      Perl_warn(aTHX_ "payload lost bits (%" UVxf ")", a[i]);
+       break;
+     }
+   }
+@@ -1267,7 +1267,7 @@ static NV_PAYLOAD_TYPE S_getpayload(NV nv)
+   }
+   for (i = (int)C_ARRAY_LENGTH(a) - 1; i >= 0; i--) {
+ #ifdef NV_PAYLOAD_DEBUG
+-    Perl_warn(aTHX_ "a[%d] = %"UVxf"\n", i, a[i]);
++    Perl_warn(aTHX_ "a[%d] = %" UVxf "\n", i, a[i]);
+ #endif
+     payload *= UV_MAX;
+     payload += a[i];
+--- perl-5.24.1/ext/XS-APItest/Makefile.PL
++++ perl-5.24.1/ext/XS-APItest/Makefile.PL
+@@ -58,7 +58,8 @@ sub MY::postamble
+ DTRACE_D = ../../perldtrace.d
+ 
+ dtrace\$(OBJ_EXT): \$(DTRACE_D) core\$(OBJ_EXT)
+-	$Config{dtrace} -G -s \$(DTRACE_D) -o dtrace\$(OBJ_EXT) core\$(OBJ_EXT)
++	$Config{dtrace} -G -s \$(DTRACE_D) -o dtrace\$(OBJ_EXT) core\$(OBJ_EXT) || \\
++	  ( \$(ECHO) >dtrace.c && \$(CCCMD) \$(CCCDLFLAGS) dtrace.c && rm -f dtrace.c )
+ POSTAMBLE
+ 
+     return $post;
+--- perl-5.24.1/hints/msys.sh
++++ perl-5.24.1/hints/msys.sh
+@@ -96,3 +96,4 @@ lddlflags="$lddlflags $ldflags"
+ # strip exe's and dll's, better do it afterwards
+ #ldflags="$ldflags -s"
+ #ccdlflags="$ccdlflags -s"
++#lddlflags="$lddlflags -s"
+--- perl-5.24.1/lib/B/Deparse.t
++++ perl-5.24.1/lib/B/Deparse.t
+@@ -7,7 +7,7 @@ BEGIN {
+         print "1..0 # Skip -- Perl configured without B module\n";
+         exit 0;
+     }
+-    require 'test.pl';
++    require './test.pl';
+ }
+ 
+ use warnings;
 --- perl-5.24.1/utils/Makefile.PL	Sat Feb 18 19:06:04 2017
 +++ perl-5.24.1/utils/Makefile.PL	Tue Jan 17 08:34:48 2017
 @@ -13,7 +13,7 @@

 
 my $MASTER_CFG = "config_h.SH";
 # Inclusive bounds on the main part of the file, $section == 1 below:
--- perl-5.24.1/Porting/new-perldelta.pl	Sat Feb 18 19:05:52 2017
+++ perl-5.24.1/Porting/new-perldelta.pl	Sat Jan 14 13:51:21 2017
@@ -4,7 +4,7 @@

 use strict;
--- perl-5.24.1/regen/regcharclass.pl	Sat Feb 18 19:05:54 2017
+++ perl-5.24.1/regen/regcharclass.pl	Sat Jan 14 13:52:29 2017
@@ -11,9 +11,9 @@ our $hex_fmt= "0x%02X";
 sub DEBUG () { 0 }
 $|=1 if DEBUG;
 
-require 'regen/regen_lib.pl';
-require 'regen/charset_translations.pl';
-require "regen/regcharclass_multi_char_folds.pl";
+require './regen/regen_lib.pl';
+require './regen/charset_translations.pl';
+require "./regen/regcharclass_multi_char_folds.pl";
 
 =head1 NAME
 
--- perl-5.24.1/regen/regcomp.pl	Sat Feb 18 19:05:54 2017
+++ perl-5.24.1/regen/regcomp.pl	Sat Jan 14 13:52:29 2017
@@ -20,7 +20,7 @@
