Remove functions prior glib < 3.32 with replacement.