Add patch() to generated wrappers.