Avoid some warnings when building with Gtk+ >= 3.0