Fix a few goofy assumptions that 'behave mswin' makes.