minor modification to be able to build without vtk