Add a retina (HiDPI) display workaround and a little fix in the preferences class.