Add workaround for logging hang on Windows
On Windows, using q[C]Debug and friends before QApplication was created
makes the app hang. Use OutputDebugString instead. This happens only with
Qt 5.
- Fixes-commit: 23a9399b8f4d95b9597c8e1908296a9c4a13cb23