Patch `configure` on windows to use mthread instead of pthread