Update dependencies and Fix code to compile.