[misc] Make the build work under Java 1.6