HiDPI friendly Preferences dialog

Instead of positioning the preferences action buttons absolutely, place
them to a FlowLayout panel, which sticks to the bottom of the form all
the time, making them visible on all DPI settings, not just 96DPI.