Fix bug in addListener/removeListener on windows