Windows does not have kqueue in the first place AFAIK. It's my fault for not remembering that dub (by default) compiles all modules on any platform, regardless of whether they are actually imported. A less LOC intensive fix would be just moving the import into the static if.
Please try that.
Looks a bit ugly but it fixes the windows build.