Workaround compiler warnings and gtk+ deprecations