Handle API changes for VTK 6.