Attempt to fix Windows context problems.