Apply vanilla 3.9.5 patches