Maybe patched to compile on Windows for real now?
diff --git a/test/testautomation_surface.c b/test/testautomation_surface.c
index d04db19..ca41d4a 100644
--- a/test/testautomation_surface.c
+++ b/test/testautomation_surface.c
@@ -8,7 +8,7 @@
#define _CRT_NONSTDC_NO_DEPRECATE
#include <stdio.h>
-#ifndef __WIN32__
+#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <sys/stat.h>