Support for hardware cursor sizes other than 64x64 on wayland

Fixes mouse cursor corruption on AMD Kaveri (and other hardware with cursor size bigger than 64x64).

Based on weston patch, for similar issue, from here: https://bugzilla.kernel.org/show_bug.cgi?id=77531