diff --git a/haskakafka.cabal b/haskakafka.cabal
--- a/haskakafka.cabal
+++ b/haskakafka.cabal
@@ -1,5 +1,5 @@
 name:                haskakafka
-version:             0.2.0.1
+version:             0.2.0.2
 synopsis:            Kafka bindings for Haskell
 description:         Use Apache Kafka in Haskell through the librdkafka
                      C library. The library is preliminary but fully
@@ -21,7 +21,7 @@
 
 library
   Build-tools: c2hs
-  build-depends:       base >=4.6 && < 5
+  build-depends:       base >=4.7 && < 5
                      , containers
                      , unix
                      , bytestring
@@ -42,7 +42,7 @@
   Main-Is: TestMain.hs
   HS-Source-Dirs: tests
   ghc-options: -Wall -threaded
-  build-depends:  base >=4.6 && < 5
+  build-depends:  base >=4.7 && < 5
                 , hspec
                 , bytestring
                 , haskakafka
diff --git a/src/Haskakafka/Internal.chs b/src/Haskakafka/Internal.chs
--- a/src/Haskakafka/Internal.chs
+++ b/src/Haskakafka/Internal.chs
@@ -12,6 +12,7 @@
 import Foreign.C.Types
 import Haskakafka.InternalEnum
 import System.IO
+import System.IO.Unsafe (unsafePerformIO)
 import System.Posix.IO
 import System.Posix.Types
 
