Fixed build.xml to be compatible with Java 8.