Fix showing/hiding Log Console on Windows

It appears to me that sometimes the first call to ShowWindow() is hindered by STARTUPINFO or something, so I just "neutralize" them with a dummy call. There might be better solutions, but this works for now.