Fixing compiler errors with vtk 5.