Added maven profile for compiling with JDK 8

This adds  a maven profile for building with JDK 8. There is a single test-failure when building with JDK8, but I'll examine that and open a separate issue if necessary.