Fixed compilation issue with Java 1.6