*.c: Add version check to see if g_type_init is needed since that
function call is deprecated in newer versions of glib.
See https://www.freedesktop.org/patch/34597/ for more information