fix Issue 10462 - interface thunk doesn't preserve EBX

Fix http://d.puremagic.com/issues/show_bug.cgi?id=10462

and redo fix for http://d.puremagic.com/issues/show_bug.cgi?id=9729