Fixed building with Gtk+ >= 3.0
Only let setting default MIME handlers if relevant