clean-up mswin-related code