Fixed buildscript for Java 6