Fix uninitialized variable in VisualizationTab and make it compile on Windows