Some build fixes to support compilation with MSVC on Windows
diff --git a/src/fccache.c b/src/fccache.c
index 7139b08..cefe4e9 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -30,7 +30,11 @@
 #include <limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/time.h>
+
+#ifndef _WIN32
+  #include <sys/time.h>
+#endif
+
 #include <assert.h>
 #if defined(HAVE_MMAP) || defined(__CYGWIN__)
 #  include <unistd.h>
diff --git a/src/fcwindows.h b/src/fcwindows.h
index a0eee67..2e8b9ec 100644
--- a/src/fcwindows.h
+++ b/src/fcwindows.h
@@ -44,6 +44,14 @@
 #  define WIN32_EXTRA_LEAN
 #  define STRICT
 #  include <windows.h>
+
+#if defined(_MSC_VER)
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+
 #endif
 
 #endif /* _FCWINDOWS_H_ */