cursor handle support for Windows, SDL2 and X11