Make Java 1.6 compatible
Merge pull request #3 from erocs/master

Make Java 1.6 compatible