Fixed some issues for running sunfish under xboard