add compiler settings for Java 7