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.
Merge pull request #134 from jansokoly/upstream

HiDPI friendly Preferences dialog