diff --git a/Text/Regex/PCRE/Light.hs b/Text/Regex/PCRE/Light.hs
--- a/Text/Regex/PCRE/Light.hs
+++ b/Text/Regex/PCRE/Light.hs
@@ -81,15 +81,10 @@
 import qualified Data.ByteString.Base     as S
 #endif
 
--- From ghc-7.8 (base-4.7.0.0), unsafePerformIO
--- must be imported from System.IO.Unsafe, since
--- its removal from Foreign.
-#if __GLASGOW_HASKELL__ >= 708
 import System.IO.Unsafe (unsafePerformIO)
-#endif
 
 -- Foreigns
-import Foreign
+import Foreign (newForeignPtr, withForeignPtr)
 import Foreign.Ptr
 import Foreign.C.Types
 import Foreign.C.String
diff --git a/configure b/configure
deleted file mode 100644
--- a/configure
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-#
-
-# subst standard header path variables
-if test -n "$CPPFLAGS" ; then
-    echo "Found CPPFLAGS in environment: '$CPPFLAGS'"
-    sed 's,@CPPFLAGS@,'"$CPPFLAGS"',g;s,@LDFLAGS@,'"$LDFLAGS"',g'  \
-        < pcre-light.buildinfo.in > pcre-light.buildinfo
-fi
diff --git a/pcre-light.buildinfo.in b/pcre-light.buildinfo.in
deleted file mode 100644
--- a/pcre-light.buildinfo.in
+++ /dev/null
@@ -1,3 +0,0 @@
-ghc-options: -optc@CPPFLAGS@
-cc-options:  @CPPFLAGS@
-ld-options:  @LDFLAGS@
diff --git a/pcre-light.cabal b/pcre-light.cabal
--- a/pcre-light.cabal
+++ b/pcre-light.cabal
@@ -1,7 +1,7 @@
-name:            pcre-light
-version:         0.4.0.3
-homepage:        https://github.com/Daniel-Diaz/pcre-light
-synopsis:        A small, efficient and portable regex library for Perl 5 compatible regular expressions
+name: pcre-light
+version: 0.4.0.4
+homepage: https://github.com/Daniel-Diaz/pcre-light
+synopsis: Portable regex library for Perl 5 compatible regular expressions
 description:
     A small, efficient and portable regex library for Perl 5 compatible regular expressions
     .
@@ -18,10 +18,9 @@
 author:          Don Stewart
 maintainer:      Daniel Díaz <dhelta.diaz@gmail.com>
 cabal-version: >= 1.2.0
-build-type:      Configure
+build-type:      Simple
 tested-with:     GHC == 7.8.3
-extra-source-files: configure, pcre-light.buildinfo.in, README.md
-extra-tmp-files:    pcre-light.buildinfo
+extra-source-files: README.md
 
 flag old_base
   description: Build with an old version of base (< 3)
@@ -39,5 +38,5 @@
     else
         build-depends: base >= 3 && <= 5, bytestring >= 0.9
 
-    extra-libraries: pcre
+    pkgconfig-depends: libpcre
 
