Compile regex during the magic compilation process so that we catch bad
regular expressions early.
_POSIX2_RE_DUP_MAX is 255 on most systems.