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.
Merge pull request #1444 from aquanull/patch-4

Fix showing/hiding Log Console on Windows