Added Windows detection for logging.