diff --git a/Gtk2HsSetup.hs b/Gtk2HsSetup.hs
--- a/Gtk2HsSetup.hs
+++ b/Gtk2HsSetup.hs
@@ -129,7 +129,7 @@
             Just ('.':_)                -> True
             Just ('-':n:_) | isNumber n -> True
             _                           -> False
-        
+
 -- The following code is a big copy-and-paste job from the sources of
 -- Cabal 1.8 just to be able to fix a field in the package file. Yuck.
 
@@ -167,7 +167,11 @@
     let clbi = LBI.getComponentLocalBuildInfo lbi LBI.CLibName
 
     installedPkgInfoRaw <- generateRegistrationInfo
+#if CABAL_VERSION_CHECK(1,22,0)
+                           verbosity pkg lib lbi clbi inplace False distPref packageDb
+#else
                            verbosity pkg lib lbi clbi inplace distPref
+#endif
 
     dllsInScope <- getSearchPath >>= (filterM doesDirectoryExist) >>= getDlls
     let libs = fixLibs dllsInScope (extraLibraries installedPkgInfoRaw)
diff --git a/System/Gnome/GConf/Types.chs b/System/Gnome/GConf/Types.chs
--- a/System/Gnome/GConf/Types.chs
+++ b/System/Gnome/GConf/Types.chs
@@ -47,7 +47,7 @@
 #else
 import Foreign.ForeignPtr (unsafeForeignPtrToPtr)
 #endif
-import Foreign.C.Types    (CULong(..), CUInt(..))
+import Foreign.C.Types    (CULong(..), CUInt(..), CULLong(..))
 import System.Glib.GType  (GType, typeInstanceIsA)
 import System.Glib.GObject
 
diff --git a/gconf.cabal b/gconf.cabal
--- a/gconf.cabal
+++ b/gconf.cabal
@@ -1,5 +1,5 @@
 Name:           gconf
-Version:        0.13.0.0
+Version:        0.13.0.1
 License:        LGPL-2.1
 License-file:   COPYING
 Copyright:      (c) 2001-2010 The Gtk2Hs Team
@@ -39,7 +39,7 @@
 Library
         build-depends:  base >= 4 && < 5,
                         glib >= 0.13.0.0 && < 0.14,
-                        text >= 0.11.0.6 && < 1.2
+                        text >= 0.11.0.6 && < 1.3
 
         build-tools:    gtk2hsC2hs >= 0.13.11,
                         gtk2hsHookGenerator, gtk2hsTypeGen
