[OS/2] Update nsWindow to widget listener usage.
Guard more IPC-dependent code with #ifdef MOZ_IPC.