Build for running on Java 6

This pull request allows the library runs on Java 6 or later.