making the library JDK 1.6 compatible and compiling for JDK 1.6
Merge pull request #4 from zluspai/master

making the library JDK 1.6 compatible and compiling for JDK 1.6