add @nogc to windows API

1. add @nogc
2. simplify boilerplace license
3. remove tabs and trailing whitespace