Added a pthread naming fallback for older glib versions.