vtk: fix --with-examples option

Fixes #1453.
Closes #1456.