Working version for update to 2.067.

The problem was __gshared. Replacing it with TLS fixed the issue.
Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.