What follows are the changes I made to make XChess compile. There are still a couple of bugs left which maybe someone else will fix.