win32: add native wrappers for pthread functions

Off by default, use --enable-win32-internal-pthreads .

Untested, because wine doesn't implement the new Vista functions.