--- cachefilesd-0.9.orig/cachefilesd.conf
+++ cachefilesd-0.9/cachefilesd.conf
@@ -10,7 +10,7 @@
 #
 ###############################################################################
 
-dir /var/fscache
+dir /var/cache/fscache
 tag mycache
 brun 10%
 bcull 7%
--- cachefilesd-0.9.orig/cachefilesd.c
+++ cachefilesd-0.9/cachefilesd.c
@@ -46,6 +46,8 @@
 #include <sys/inotify.h>
 #include <sys/time.h>
 #include <sys/vfs.h>
+#include <sys/stat.h>
+#include <sys/types.h>
 
 typedef enum objtype {
 	OBJTYPE_INDEX,
