Fix for OpenJDK6