internal/match: refactor re.compile1 into reCompile struct
internal/match: refactor re.compile1 into reCompile struct

Using a reCompile struct is clearer and avoids the possibility
of forgetting to save the result of an append to the prog.
It also makes it easier to add new compilation state.

google/licensecheck