Replace is_enum with is_proto_enum because is_enum is not supported on some platforms.
Remove usage of features not supported in Java 1.6.