updating source and target compatibility to Java 7