Fixed compilation errors when compiling with openJDK-1.6.0.