Fixed compilation with java 5.