Fixing eventlog handling on windows.