Replace lib copying with syncing.