Conditional code for older glib versions.