Support JDK 1.8

This commit introduces support for compiling under JDK 1.8.
Merge pull request #43 from nmartynenko/jdk1_8-support

* jdk1_8-support:
  Support JDK 1.8