Fixed warning/error checkers so they work correctly in JDK6 and JDK7.

Problems still remain under JDK8, but there are also other UF modules that don't
build correctly under JDK8.