Log messages from reports promises to event log on Windows.

Use portable LogToSystemLog function to that end.

Fixes Redmine #6315