Fixed compilation error on JDK 7