Added patch to workaround programs leaking wndproc slots.