Fix dirty flag setting

SEGFAULT fix - m_dirty flag (align with Java target)
REWRITE_EARLY_EXCEPTION aka RewriteEarlyExitException
Merge branch 'master' of https://github.com/ibre5041/antlr3