Add support for compilation with Java 7

Extra maven profile to support compilation with Java 7.