integrate antlr4 in build task and fix some issues with source code compatibility of antlr4 (until antlr4.4.1+ only java 1.6 is supported)