Fix a couple of issues when displaying the 'Preferences' dialog on Windows:-