diff --git a/Bundled/Posix.hsc b/Bundled/Posix.hsc
--- a/Bundled/Posix.hsc
+++ b/Bundled/Posix.hsc
@@ -15,20 +15,20 @@
 import Foreign.Ptr ( Ptr )
 
 import System.Posix.Internals
-          ( CStat, c_fstat, lstat, c_stat, sizeof_stat
+          ( CStat, c_fstat, c_stat, sizeof_stat
           , st_mode, st_size, st_mtime, s_isdir, s_isreg )
 
 import System.Posix.Types ( Fd(..), CMode, EpochTime )
 
 #if mingw32_HOST_OS
 import Data.Int ( Int64 )
+
+type FileOffset = Int64
+lstat = c_stat
 #else
 import System.Posix.Types ( FileOffset )
+import System.Posix.Internals( lstat )
 #endif
-
-##if mingw32_HOST_OS
-type FileOffset = Int64
-##endif
 
 data FileStatus = FileStatus {
     fst_exists :: !Bool,
diff --git a/hashed-storage.cabal b/hashed-storage.cabal
--- a/hashed-storage.cabal
+++ b/hashed-storage.cabal
@@ -1,5 +1,5 @@
 name:          hashed-storage
-version:       0.4.11
+version:       0.4.12
 synopsis:      Hashed file storage support code.
 
 description:   Support code for reading and manipulating hashed file storage
