See issue #832.
Look for an installed antlr v2, and if available use it instead of its embedded copy.