Fix g_memdup deprecation warning with glib >= 2.68 and CI
This mini series started to just update g_memdup calls and ended up adding multiple fixes for the CI.
This mini series started to just update g_memdup calls and ended up adding multiple fixes for the CI.