behave mswin instead of manual hacks