Support for java 5
Merge pull request #4 from trnl/master

Support for Java 1.5 & some build env fixes