Patches pulled from gentoo to allow building with newer glib and cups. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>