* macros that code uses.  This lets the same code operate on two different
  * representations for state sets.
  */
+#if defined(__MWERKS__) && !defined(__MACH__)
+typedef long off_t ;
+#else
 #include <sys/types.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
 #include <ctype.h>
-#include <regex.h>
+#include "regex.h"
 
 #include "utils.h"
 #include "regex2.h"
 
-static int nope = 0;           /* for use in asserts; shuts lint up */
+#ifdef REDEBUG
+static int nope = 0;          /* for use in asserts; shuts lint up */
+#endif
 
 /* macros for manipulating states, small version */
 #define        states  unsigned