Make SaneDialogBox and SaneEndDialog use [GS]etWindowLong rather than