qemu: add optional gtk dependency

Closes #31385.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>