Update for VTK 6 compatibility.