update dependencies, some minor changes to compile with jdk8