diff --git a/cautious-file.cabal b/cautious-file.cabal
--- a/cautious-file.cabal
+++ b/cautious-file.cabal
@@ -1,5 +1,5 @@
 name:                cautious-file
-version:             1.0.1
+version:             1.0.2
 Cabal-Version:	     >= 1.6
 synopsis:            Ways to write a file cautiously, to reduce the chances of problems such as data loss due to crashes or power failures
 description:         On non-Windows systems, posix-specific functions are used to reduce the chance of data loss further
@@ -25,7 +25,7 @@
 
 Library
   hs-source-dirs:       src
-  build-Depends:	base >= 4, base < 5, directory == 1.1.*, filepath >= 1.2, filepath < 1.4, bytestring == 0.9.*
+  build-Depends:	base >= 4, base < 5, directory >= 1.1, directory < 1.3, filepath >= 1.2, filepath < 1.4, bytestring >= 0.9, bytestring < 0.11
   if flag(posix) && !os(Windows)
     cpp-options: -D_POSIX
     build-Depends: unix
diff --git a/src/System/Posix/ByteLevel.hsc b/src/System/Posix/ByteLevel.hsc
--- a/src/System/Posix/ByteLevel.hsc
+++ b/src/System/Posix/ByteLevel.hsc
@@ -9,7 +9,7 @@
 import Data.Function (fix)
 import Foreign.C.Error (throwErrnoIfMinus1Retry)
 import Foreign.C.String (CString, CStringLen)
-import Foreign.C.Types (CInt, CSize)
+import Foreign.C.Types (CInt(..), CSize(..))
 import System.Posix.Types (ByteCount, Fd(..))
 
 #include <unistd.h>
diff --git a/src/System/Posix/Fsync.hsc b/src/System/Posix/Fsync.hsc
--- a/src/System/Posix/Fsync.hsc
+++ b/src/System/Posix/Fsync.hsc
@@ -2,7 +2,7 @@
 module System.Posix.Fsync (fsync) where
 
 import Foreign.C.Error (throwErrnoIfMinus1_)
-import Foreign.C.Types (CInt)
+import Foreign.C.Types (CInt(..))
 import System.Posix.Types (Fd(..))
 
 #include <unistd.h>
