glib-2.0: mark many constants as const instead of static

Fixes bug 646143.