[OS/2] Small updates of widget code to match code changes.
[OS/2] Fix build break in IME patch.
[OS/2] Update widget code according to changes from Mozilla bug 743975.

This is a continuation of commits 79fa20910f and 3eb9e17855 and all together
they should be treated as a whole.