Adding support for full color mouse cursors based on work done in artifact 2884937.
This patch requires libXcursor, which ships with recent versons of XFree86 and Xorg. In this context, the Xcursor library basically acts as a wrapper around around libXrender, falling back to Xlib calls if the RENDER extension is not available.
I think configure.ac should probably be changed to reflect the new dependency, but I have never done any work with autoconf.
Some of the code still feels "dirty" to me, especially the handling of the andmask bitfield. I also have no idea if this works for bpp values other than 1 and 32 since I can't figure out how to get the server to send anything else.
I will happily take any suggestions for cleaning things up.