Ok, got it. The reason for all the trouble was a wrong version of libwayland-cursor0. And I didn't know apt can be forced to install a certain version of software by adding =version number
It then compiled without problems. Your suggestion works like a charm, Eric! Thank you so much!
I'm afraid it looks like it did before modifications were made. I hope I didn't make any mistake. I stashed my modification, pulled again both kstars and indi, compiled both. This is what the result looks like: