fix compile error with JDK > 1.6
Merge pull request #20 from kensiprell/master

fix compile error with JDK > 1.6