Apply vanilla 3.13.5 patches