Fixing a potential bad read with the sound class
cleaning up further the xwin driver