Fixed a memory leak and removed a usless assignment. Added ANTLR3_USE_64BIT for LP64 target.

The pull request seems to include also the upstream merge. However this doesn't change anything, so this pull request is only about the few mentioned changes.