Patch by Mark Hammond to avoid certain header files on Windows/CE.
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index 49793b8..35da3f7 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -4,7 +4,9 @@
 #include "macbuildno.h"
 #endif
 
+#ifndef DONT_HAVE_STDIO_H
 #include <stdio.h>
+#endif
 
 #ifndef DATE
 #ifdef __DATE__
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 11f72f5..c18d979 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -48,7 +48,9 @@
 extern void bzero();
 #endif
 
+#ifndef DONT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
 
 #if defined(PYOS_OS2)
 #include <sys/time.h>