Fix bug when building wine without X11