Fixed building with JDK 6.