Some CMake/JIT fixes related to VTK.