Index: EV-4.17/Makefile.PL
--- EV-4.17/Makefile.PL.orig	2013-08-01 04:08:54.000000000 +0200
+++ EV-4.17/Makefile.PL	2014-09-06 08:36:27.752534901 +0200
@@ -4,7 +4,9 @@
 use Config;
 use ExtUtils::MakeMaker;
 
-unless (-e "libev/ev_epoll.c") {
+$ENV{PERL_MM_USE_DEFAULT} = 1;
+
+unless (-e "../ev_epoll.c") {
    print <<EOF;
 
 ***
@@ -284,10 +286,10 @@
                . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c libev/ev_kqueue.c libev/ev_poll.c "
                . "libev/ev_vars.h libev/ev_wrap.h",
     },
-    INC       => "-Ilibev",
+    INC       => "-I..",
     DEFINE    => "$DEFINE",
     NAME => "EV",
-    LIBS => [$LIBS],
+    LIBS => ["-L../.libs -lev", $LIBS],
     PREREQ_PM => {
        @anyevent,
        "common::sense" => 0,
@@ -297,13 +299,13 @@
 		    'EV.pm'		=> '$(INST_LIB)/EV.pm',
 		    'EV/EVAPI.h'	=> '$(INST_LIB)/EV/EVAPI.h',
 		    'EV/MakeMaker.pm'	=> '$(INST_LIB)/EV/MakeMaker.pm',
-		    'libev/ev.h'	=> '$(INST_LIB)/EV/ev.h',
-		    'libev/ev.pod'	=> '$(INST_LIB)/EV/libev.pod',
+   		    '../ev.h'	=> '$(INST_LIB)/EV/ev.h',
+   		    '../ev.pod'	=> '$(INST_LIB)/EV/libev.pod',
                  },
     MAN3PODS => {
                     'EV.pm'           => '$(INST_MAN3DIR)/EV.$(MAN3EXT)',
                     'EV/MakeMaker.pm' => '$(INST_MAN3DIR)/EV::MakeMaker.$(MAN3EXT)',
-                    'libev/ev.pod'    => '$(INST_MAN3DIR)/EV::libev.$(MAN3EXT)',
+                    '../ev.pod'       => '$(INST_MAN3DIR)/EV::libev.$(MAN3EXT)',
                 },
 );
 
