libfreerdp-core: add event handle support to listener