making the library JDK 1.6 compatible and compiling for JDK 1.6