fix gtk3 warnings

fix some warnings found by -Werror