ANTLR fails under OSX Yosemite's Java 1.8 - added a check