Add packaging and patches for non-X11 version