Unify copying of native dependencies