diff --git a/System/Posix/Daemonize.hs b/System/Posix/Daemonize.hs
--- a/System/Posix/Daemonize.hs
+++ b/System/Posix/Daemonize.hs
@@ -48,7 +48,13 @@
 import Control.Monad.Trans
 import Control.Exception.Extensible
 import qualified Control.Monad as M (forever)
+
+#if MIN_VERSION_base(4,6,0)
+import Prelude
+#else
 import Prelude hiding (catch)
+#endif
+
 import System.Environment
 import System.Exit
 import System.Posix
diff --git a/hdaemonize.cabal b/hdaemonize.cabal
--- a/hdaemonize.cabal
+++ b/hdaemonize.cabal
@@ -1,5 +1,5 @@
 Name:		hdaemonize
-Version:	0.4.4.1
+Version:	0.4.5.0
 Cabal-Version:  >= 1.6
 License:	BSD3
 License-file:   LICENSE
@@ -19,6 +19,7 @@
 Library
   Build-Depends:	base >= 4 && < 5, unix, hsyslog, extensible-exceptions, filepath, mtl
   Exposed-modules:      System.Posix.Daemonize
+  Extensions:           CPP
   if impl(ghc > 6.12)
       Ghc-Options:      -Wall -fno-warn-unused-do-bind -fno-warn-type-defaults -fno-warn-name-shadowing
   else
