Avoid warnings when compiling with Gtk+ 3.0 and later