gfile: Fix windows build
diff --git a/goo/gfile.cc b/goo/gfile.cc
index 218882d..06014b3 100644
--- a/goo/gfile.cc
+++ b/goo/gfile.cc
@@ -65,6 +65,8 @@
 #define PATH_MAX 1024
 #endif
 
+#ifndef _WIN32
+
 namespace {
 
 template< typename... >
@@ -99,6 +101,8 @@
 
 }
 
+#endif
+
 //------------------------------------------------------------------------
 
 GooString *getCurrentDir() {