diff --git a/barley.cabal b/barley.cabal
--- a/barley.cabal
+++ b/barley.cabal
@@ -1,5 +1,5 @@
 Name:                barley
-Version:             0.3.0.1
+Version:             0.3.0.2
 License:             OtherLicense
 License-file:        LICENSE
 Author:              Johan Tibell, Mark Lentczner
@@ -112,9 +112,9 @@
     snap-server == 0.4.*,
     html == 1.0.*,
     text >= 0.7 && < 0.12,
-    unix == 2.4.*,
-    transformers == 0.2.*
+    transformers == 0.2.*,
+    unix-compat
 
-  ghc-options: -Wall
+  ghc-options: -Wall -threaded
   if impl(ghc >= 6.8)
     ghc-options: -fwarn-tabs
diff --git a/src/Barley/Utils.hs b/src/Barley/Utils.hs
--- a/src/Barley/Utils.hs
+++ b/src/Barley/Utils.hs
@@ -32,8 +32,8 @@
 import Data.CIByteString (toCI)
 import Snap.Types
 import System.FilePath (joinPath, splitDirectories)
-import System.Posix.Time (epochTime)
-import System.Posix.Types (EpochTime)
+import System.PosixCompat.Time (epochTime)
+import System.PosixCompat.Types (EpochTime)
 
 -- | Sanitize a file path for serving.
 -- If the path contains any illegal path components, then Nothing is returned.
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -31,7 +31,7 @@
 import System.Environment
 import System.Exit
 import System.FilePath ((<.>), (</>), takeExtension)
-import System.Posix.Files (getFileStatus, modificationTime)
+import System.PosixCompat.Files (getFileStatus, modificationTime)
 import Text.Html hiding ((</>), address, content, start)
 
 main :: IO ()
