ui/twin: fix compiler warnings