fix Issue 12710 - Bad @nogc requirement for Windows callbacks
Merge pull request #843 from 9rnsr/fix12710

Issue 12710 - Bad @nogc requirement for Windows callbacks