configure, Windows: support static pthreads on Windows