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

diff --git a/lib/ext2fs/read_bb.c b/lib/ext2fs/read_bb.c
index 7379bbd..99c653d 100644
--- a/lib/ext2fs/read_bb.c
+++ b/lib/ext2fs/read_bb.c
@@ -17,8 +17,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
 
 #include <linux/ext2_fs.h>