Fix WOK extraction when environment variable HAVE_VTK is not defined