Fix Ant warnings

Ant complains about `includeantruntime` not being set.

    [javac] build.xml:136: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

The Ant runtime was required for one javac, but not the rest.

Java complains unchecked operations.

    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

I added `-Xlint:unchecked` and then resolved all existing warnings.

Unfortunately not. For a reason beyond me, Java's for-each loop requires `Iterable`, not an `Iterator`.

So there are two choices:

1. Use an `Iterator` directly in a `while` loop with `hasNext()` and `next()`.

1. Create an `Iterable` from the `Iterator.