update to Java 7 + fix build in order to compile through continuous integration