Copy optional dependencies.