diff --git a/mockery.cabal b/mockery.cabal
--- a/mockery.cabal
+++ b/mockery.cabal
@@ -1,9 +1,9 @@
--- This file has been generated from package.yaml by hpack version 0.15.0.
+-- This file has been generated from package.yaml by hpack version 0.18.0.
 --
 -- see: https://github.com/sol/hpack
 
 name:           mockery
-version:        0.3.4
+version:        0.3.5
 synopsis:       Support functions for automated testing
 description:    Support functions for automated testing
 category:       Testing
@@ -36,6 +36,8 @@
       Test.Mockery.Directory
       Test.Mockery.Environment
       Test.Mockery.Logging
+  other-modules:
+      Paths_mockery
   default-language: Haskell2010
 
 test-suite spec
diff --git a/src/Test/Mockery/Environment.hs b/src/Test/Mockery/Environment.hs
--- a/src/Test/Mockery/Environment.hs
+++ b/src/Test/Mockery/Environment.hs
@@ -33,7 +33,7 @@
 -- environment can no longer be run in parallel.
 withModifiedEnvironment :: [(String, String)] -> IO a -> IO a
 withModifiedEnvironment environment action = bracketEnvironment $ do
-  modifyEnvironment environment
+  extendEnvironment environment
   action
 
 bracketEnvironment :: IO a -> IO a
@@ -42,10 +42,10 @@
 setEnvironment :: [(String, String)] -> IO ()
 setEnvironment environment = do
   clearEnvironment
-  modifyEnvironment environment
+  extendEnvironment environment
 
-modifyEnvironment :: [(String, String)] -> IO ()
-modifyEnvironment environment = forM_ environment $ uncurry setEnv
+extendEnvironment :: [(String, String)] -> IO ()
+extendEnvironment environment = forM_ environment $ uncurry setEnv
 
 clearEnvironment :: IO ()
 clearEnvironment = do
diff --git a/src/Test/Mockery/Logging.hs b/src/Test/Mockery/Logging.hs
--- a/src/Test/Mockery/Logging.hs
+++ b/src/Test/Mockery/Logging.hs
@@ -1,4 +1,3 @@
-{-# LANGUAGE CPP #-}
 {-# LANGUAGE RecordWildCards #-}
 module Test.Mockery.Logging (
   captureLogMessages
@@ -6,11 +5,10 @@
 , LogLevel(..)
 ) where
 
-#if !MIN_VERSION_base(4,8,0)
-import           Control.Applicative
-#endif
 import           Control.Exception
-import           Data.IORef
+import           Data.IORef.Compat
+import           Prelude ()
+import           Prelude.Compat
 import           System.Logging.Facade.Types
 import           System.Logging.Facade.Sink
 
