QPID-5421: Restore windows fix that got reverted on r1550819

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1551256 13f79535-47bb-0310-9956-ffa450edef68