WIP: Ported Preferences dialog to OCaml