Perl-compatbile named groups.

Fixes compatibility issues with older PCRE versions.
Fix symbol overriding.