Windows doesn't support POSIX regex, so we need to include it ourselves. The sources come from git, which in turn took them from gawk.