[[ Bug 12237 ]] Attempt to attach to Windows console in standalones if launched from one.
[[ Bug 11884 ]] Stroked graphics clipped when printed.
[[ Bug 11884 ]] Tweaks to get fix compiling on Windows.
Merge branch 'bugfix-12237' into release-6.6.2
Merge branch 'bugfix-11884' into release-6.6.2