Fix crash due to not initialized dialog.
Add fonts to MacOS installer.

This also adds compilation of libffi which is required for building glib2.