I had to change this line in winMain.c to get kitsh to compile under Msys2:

static __attribute__((__noreturn__)) Tcl_PanicProc      WishPanic;