Modified to work with Java 6

Modified DEFAULT modifier check so that it works on Java 6 and 7
runtimes and removed Java 8 build requirements. Java 8 is still
required to compile tests.