diff --git a/src/CompileClasses.hs b/src/CompileClasses.hs
--- a/src/CompileClasses.hs
+++ b/src/CompileClasses.hs
@@ -100,6 +100,7 @@
                                 , ""
                                 , "import qualified Data.ByteString as B (ByteString, useAsCStringLen)"
                                 , "import qualified Data.ByteString.Lazy as LB (ByteString, length, unpack)"
+                                , "import Foreign.C.Types"
                                 , "import System.IO.Unsafe( unsafePerformIO )"
                                 , "import " ++ moduleRoot ++ "WxcTypes"
                                 , "import " ++ moduleRoot ++ moduleClassTypesName
diff --git a/src/ParseEiffel.hs b/src/ParseEiffel.hs
--- a/src/ParseEiffel.hs
+++ b/src/ParseEiffel.hs
@@ -20,6 +20,7 @@
 import Types
 
 import System.Environment ( getEnv )
+import System.IO.Error    (catchIOError)
 
 {-----------------------------------------------------------------------------------------
    Testing
@@ -33,7 +34,7 @@
 
 getDefaultEiffelFiles :: IO [FilePath]
 getDefaultEiffelFiles
-  = do wxwin <- getEnv "WXWIN" `catch` \err -> return ""
+  = do wxwin <- getEnv "WXWIN" `catchIOError` \err -> return ""
        return [wxwin ++ "/wxc/include/wxc_defs.e"
               ,wxwin ++ "/wxc/ewxw/eiffel/spec/r_2_4/wx_defs.e"]
 
diff --git a/wxdirect.cabal b/wxdirect.cabal
--- a/wxdirect.cabal
+++ b/wxdirect.cabal
@@ -1,5 +1,5 @@
 name:         wxdirect
-version:      0.13.1.2
+version:      0.13.1.3
 license:      BSD3
 license-file: LICENSE
 author:       Daan Leijen
@@ -68,7 +68,7 @@
   if flag(splitBase)
     build-depends:
         base       >= 4     && < 5,
-        containers >= 0.2   && < 0.5
+        containers >= 0.2   && < 0.6
   else
     build-depends:
         base       >= 3     && < 4,
