Fix build on Windows
TerminalPanel is not available on Windows, so commit bd47eb2e6d broke the MSVC build on the CI.