Index: Makefile.PL
--- Makefile.PL.orig
+++ Makefile.PL
@@ -78,9 +78,9 @@ inc::Sereal::BuildTools::WriteMakefile(
     LICENSE       => 'perl',
     ABSTRACT_FROM => 'lib/Sereal/Decoder.pm',
     AUTHOR        => 'Steffen Mueller <smueller@cpan.org>, Yves Orton <yves@cpan.org>',
-    LIBS          => [$libs],                                                          # e.g., '-lm'
+    LIBS          => ["-L${LOCALBASE}/lib $libs"], # e.g., '-lm'
     DEFINE        => $defines,
-    INC      => '-I.',                            # e.g., '-I. -I/usr/include/other'
+    INC      => "-I. -I${LOCALBASE}/include", # e.g., '-I. -I/usr/include/other'
     OPTIMIZE => $optimize,
     OBJECT   => $objects,
     DIR      => $subdirs,
