diff --git a/HsStat.h b/HsStat.h
new file mode 100644
--- /dev/null
+++ b/HsStat.h
@@ -0,0 +1,16 @@
+#include <sys/stat.h>
+#include <sys/statvfs.h>
+
+#include "HsFFI.h"
+
+#if defined(__MINGW32__)
+typedef struct _stati64 struct_statvfs;  /* jww (2012-10-18): ??? */
+#else
+typedef struct statvfs struct_statvfs;
+#endif
+
+#if defined(__MINGW32__)
+extern int __hscore_statvfs(wchar_t *path, struct_statvfs *buf);
+#else
+extern int __hscore_statvfs(char *path, struct_statvfs *buf);
+#endif
diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -33,7 +33,7 @@
 default (Integer, Text)
 
 version :: String
-version = "2.0.6"
+version = "2.0.7"
 
 copyright :: String
 copyright = "2012"
diff --git a/sizes.cabal b/sizes.cabal
--- a/sizes.cabal
+++ b/sizes.cabal
@@ -1,6 +1,6 @@
 Name: sizes
 
-Version:  2.0.6
+Version:  2.0.7
 Synopsis: Recursively show space (size and i-nodes) used in subdirectories
 
 Description: Recursively show space (size and i-nodes) used in subdirectories
@@ -14,7 +14,7 @@
 Build-type:         Simple
 Cabal-version:      >= 1.8
 
-Extra-Source-Files: README.md Stat.hs Stat.hsc
+Extra-Source-Files: README.md Stat.hs Stat.hsc HsStat.h HsStat.c
 
 Executable sizes
     Main-is:       Main.hs
