Lock dependency versions and fix compare_size task.