Most likely a change in the X11 prototypes in newer versions -- removing this patch breaks the build for newer versions.