Fix errors is xwindow test program