fix Java 6 build

Java 6's javac is not as smart as Java 7's when it comes to calling
overloaded methods from an inner class, so we have to be more
explicit.
Merge pull request #219 from dicej/java6

fix Java 6 build