Fix non-VTK compile issues.

Compiles without using VTK.  Not tested, though.
Fix type mis-match.