Add support for building with jdk7