gtk3: fix build and warning