49ers deal for QB Colt McCoy