Fix vtk 5 compatibility