diff --git a/cbits/mktemp.c b/cbits/mktemp.c
--- a/cbits/mktemp.c
+++ b/cbits/mktemp.c
@@ -64,7 +64,7 @@
 {
     char *start, *trv, *suffp, *carryp;
     char *pad;
-    struct stat sbuf;
+    struct _stat sbuf;
     int rval;
     uint32_t randidx, randval;
     char carrybuf[MAXPATHLEN];
diff --git a/src/System/PosixCompat/Files.hsc b/src/System/PosixCompat/Files.hsc
--- a/src/System/PosixCompat/Files.hsc
+++ b/src/System/PosixCompat/Files.hsc
@@ -120,7 +120,14 @@
 import Control.Monad (liftM, liftM2)
 import Data.Bits ((.|.), (.&.))
 import Prelude hiding (read)
-import System.Directory
+import System.Directory (Permissions, emptyPermissions)
+import System.Directory (getPermissions, setPermissions)
+import System.Directory (readable, setOwnerReadable)
+import System.Directory (writable, setOwnerWritable)
+import System.Directory (executable, setOwnerExecutable)
+import System.Directory (searchable, setOwnerSearchable)
+import System.Directory (doesFileExist, doesDirectoryExist)
+import System.Directory (getModificationTime, renameFile)
 import System.IO (IOMode(..), openFile, hFileSize, hSetFileSize, hClose)
 import System.IO.Error
 import System.PosixCompat.Types
diff --git a/unix-compat.cabal b/unix-compat.cabal
--- a/unix-compat.cabal
+++ b/unix-compat.cabal
@@ -1,5 +1,5 @@
 name:           unix-compat
-version:        0.4.1.4
+version:        0.4.2.0
 synopsis:       Portable POSIX-compatibility layer.
 description:    This package provides portable implementations of parts
                 of the unix package. This package re-exports the unix
@@ -56,7 +56,7 @@
       else
         build-depends: directory == 1.1.*
     else
-      build-depends: time >= 1.0 && < 1.6
+      build-depends: time >= 1.0 && < 1.7
       build-depends: directory >= 1.2 && < 1.3
 
     other-modules:
