Fixed compatability with Java 6, and added a working build.xml file