fix building with gweather 3.9.2 or newer

Fix gnome-panel building when using gweather 3.9.2 or newer. This
fixes bug #711380.