Fix issue compiling with Java 1.6