Vtk6 fixes more

More VTK 6 fixes found when I turn on the compiling of apps. The changes follow #218.