US midterm voters face long lines, machine malfunctions