Fix minor GTK3 problems found by static checking.