Java 7 support

Added functionality to support building OpenJDK 7.