Fix use of deprecated panel calls.
Use some fast enumeration where possible.
Fix an error
Use Clang's @ directive for the preprocessed definitions of BOOL_YES and BOOL_NO.
Overhaul the default preference setting.
Get the old named preferences, then delete the old entries instead of setting them as the defaults.