Fix compilation failure against JDK 7u65

Interface `java.util.Iterator<E>` requires `void remove()`, but it's not provided.

The following command is used to compile: `ant build`

Some of my environment details:
OS: Linux x86_64
Ant: 1.9.4
JDK: 1.7.0_65