Avoid a POSIX include on Windows.

This fixes the mingw build.

Incidentally, I tried to find the maximum thread stack size on Windows, and I think it's only limited by virtual memory.