Made the library work with Java 6.