ecere/gfx/Surface: Fixed a Valgrind complaint about conditional jump with -O2
ecere/gui/XInterface: Fixed check for closing Joystick handles