Fixed compilation problem on Java 1.6