Some fixes to xvfbdm.