Issue #298: Fix issue with debug output in console on Windows.