Many files:
  Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H

diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c
index 0baae38..b17ed7f 100644
--- a/lib/ext2fs/unix_io.c
+++ b/lib/ext2fs/unix_io.c
@@ -19,8 +19,12 @@
 #include <stdlib.h>
 #include <fcntl.h>
 #include <time.h>
+#if HAVE_SYS_STAT_H
 #include <sys/stat.h>
+#endif
+#if HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
 #if HAVE_ERRNO_H
 #include <errno.h>
 #endif