Fix ANT build for Java 8