Log messages from reports promises to event log on Windows.

Use portable LogToSystemLog function to that end.

Fixes Redmine #6315
... or avoid the malloc/free by exploiting C99:
```
int report_size = strlen(message) + 4;
char report_message[report_size];
```