diff --git a/hakyll.cabal b/hakyll.cabal
--- a/hakyll.cabal
+++ b/hakyll.cabal
@@ -1,5 +1,5 @@
 Name:    hakyll
-Version: 4.8.0.1
+Version: 4.8.1.0
 
 Synopsis: A static website compiler library
 Description:
diff --git a/src/Hakyll/Commands.hs b/src/Hakyll/Commands.hs
--- a/src/Hakyll/Commands.hs
+++ b/src/Hakyll/Commands.hs
@@ -36,6 +36,11 @@
 import           Hakyll.Preview.Server
 #endif
 
+#ifdef mingw32_HOST_OS
+import           Control.Monad              (void)
+import           System.IO.Error            (catchIOError)
+#endif
+
 
 --------------------------------------------------------------------------------
 -- | Build the site
