Fix compilation of Enum on JDK 7