wine: fix building without x11

Closes #21986.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>