Fix CLI build

The CLI compiler complained about the variable not being final; the
Eclipse compiler seems to be a bit more lenient, not complaining if it
detects that the variable is "effectively final".