Allow tests to pass against JDK 7. Involves removing all references to JDK 8 lib classes and syntax.