Fix function prototypes
Don't use -Werror, only enable specific errors.

Otherwise we'll keep running into glib deprecations. Use the set from
gnome-common.
Fix deprecated g_type_init