49ers give WR Manningham 2-year deal