Support JDK 1.8

- Replace reference to internal class name with published API class
  name.
Merge pull request #8 from mtnygard/master

Support JDK 1.8