Fix startup crash with GLib < 2.36.