COMP: In test driver on windows, log VTK messages on standard output

Before this commit, VTK message were logged into a GUI windows
preventing them from being captured and interpreted by the testing
harness.

Optionally, the option "WITHOUT_VTK_OUTPUT_WINDOW_REDIRECT" could be passed
to avoid the inclusion of the code associated with vtkOutputWindows
configuration.

Fixes #3221

Co-authored-by: Csaba Pinter <pinter@cs.queensu.ca>