diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,7 @@
+0.0.5.1
+
+* fix compilation on ghc 7.4, 7.6 and 7.8
+
 0.0.5.0
 
 * add support for multiple bfrange and bfchars sections in CMap
diff --git a/compat/Prelude.hs b/compat/Prelude.hs
--- a/compat/Prelude.hs
+++ b/compat/Prelude.hs
@@ -11,11 +11,14 @@
   Monoid(..),
   Applicative(..),
 #endif
-
 )
 where
 
+#if MIN_VERSION_base(4,6,0)
 import "base" Prelude as P
+#else
+import "base" Prelude as P hiding (catch)
+#endif
 
 #if MIN_VERSION_base(4,8,0)
 #else
diff --git a/lib/Pdf/Toolbox/Content/UnicodeCMap.hs b/lib/Pdf/Toolbox/Content/UnicodeCMap.hs
--- a/lib/Pdf/Toolbox/Content/UnicodeCMap.hs
+++ b/lib/Pdf/Toolbox/Content/UnicodeCMap.hs
@@ -12,7 +12,6 @@
 where
 
 import Data.Monoid
-import Data.Functor
 import Data.Char
 import qualified Data.List as List
 import Data.Map (Map)
@@ -128,7 +127,7 @@
     n <- P.decimal
     P.skipSpace
     void $ P.string "beginbfrange"
-    return n
+    return (n :: Int)
 
   let go 0 rs cs = return (rs, cs)
       go count rs cs = do
diff --git a/pdf-toolbox-content.cabal b/pdf-toolbox-content.cabal
--- a/pdf-toolbox-content.cabal
+++ b/pdf-toolbox-content.cabal
@@ -1,11 +1,11 @@
 name:                pdf-toolbox-content
-version:             0.0.5.0
+version:             0.0.5.1
 synopsis:            A collection of tools for processing PDF files
 license:             BSD3
 license-file:        LICENSE
 author:              Yuras Shumovich
 maintainer:          Yuras Shumovich <shumovichy@gmail.com>
-copyright:           Copyright (c) Yuras Shumovich 2013-2015
+copyright:           Copyright (c) Yuras Shumovich 2013-2016
 category:            PDF
 build-type:          Simple
 cabal-version:       >=1.8
@@ -34,7 +34,7 @@
                        Pdf.Toolbox.Content.Encoding.WinAnsi
                        Pdf.Toolbox.Content.Encoding.MacRoman
   other-modules:       Prelude
-  build-depends:       base >= 4.6 && < 5,
+  build-depends:       base >= 4.5 && < 5,
                        containers,
                        attoparsec >= 0.10,
                        bytestring,
