Fix few warnings when building with GTK+ >= 3.0.0, mostly unused vars.