gdcm: add option to build with vtk

Closes #1331.