Fixed compiler errors on Unix by removing Java 7 features.