dia: add patch from upstream to make this work with recent glib.