49ers add Elvis Dumervil to aid NFL's worst defense