Fix compilation with JDK 1.6
Merge pull request #14 from akochurov/master

Fix compilation with JDK 1.6