Fix paths and dependencies.