Eliminate compiler warnings with libmenu-cache < 0.5.0
Fix compatibility with GLib < 2.24.