Fix async callback under Windows

Should fix issue #29.