OSX: Removed unused code, fixed layout problem in PreferencesWindow.