fix some libgdx-nightlies issues

It still hits a StackOverflow when a spell is clicked, but
at least it compiles.