Fixing sharing and missing dependencies.