added support for logging under Windows