Make Granite compile on Java 7