I wouldn't think it's worth bothering; the version of glib that ships with slackware has to ship with security patches. Why port code to work with broken code? (of course, glib is broken from the beginning, but 2.18 has known security vulnerabilities.) I have glib, gtk, libsoup, and webkit packages for slackware-current x86 if you want them.
-- # Kurt H Maier