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
@@ -134,6 +134,7 @@
 import System.IO.Error
 import System.PosixCompat.Types
 import System.Win32.File hiding (getFileType)
+import System.Win32.HardLink (createHardLink)
 import System.Win32.Time (FILETIME(..), getFileTime, setFileTime)
 
 import System.PosixCompat.Internal.Time (
@@ -373,7 +374,7 @@
 -- Hard links
 
 createLink :: FilePath -> FilePath -> IO ()
-createLink _ _ = unsupported "createLink"
+createLink = createHardLink
 
 removeLink :: FilePath -> IO ()
 removeLink _ = unsupported "removeLink"
@@ -388,10 +389,10 @@
 readSymbolicLink _ = unsupported "readSymbolicLink"
 
 -- -----------------------------------------------------------------------------
--- Renaming files
+-- Renaming
 
 rename :: FilePath -> FilePath -> IO ()
-rename name1 name2 = renameFile name1 name2
+rename name1 name2 = moveFileEx name1 name2 mOVEFILE_REPLACE_EXISTING
 
 -- -----------------------------------------------------------------------------
 -- chown()
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.3.1
+version:        0.5
 synopsis:       Portable POSIX-compatibility layer.
 description:    This package provides portable implementations of parts
                 of the unix package. This package re-exports the unix
@@ -44,7 +44,7 @@
       cbits/mktemp.c
 
     extra-libraries: msvcrt
-    build-depends: Win32 >= 2.3.0.2
+    build-depends: Win32 >= 2.5.0.0
 
     if flag(old-time)
       build-depends: old-time >= 1.0.0.0 && < 1.2.0.0
@@ -56,8 +56,8 @@
       else
         build-depends: directory == 1.1.*
     else
-      build-depends: time >= 1.0 && < 1.7
-      build-depends: directory >= 1.2 && < 1.3
+      build-depends: time >= 1.0 && < 1.9
+      build-depends: directory >= 1.2 && < 1.4
 
     other-modules:
       System.PosixCompat.Internal.Time
