Fix compilation of certain regexps