Remove Java 5+ language constructs: varargs, generics, for-each (Fixes
compiler errors)