Fix pthread configure check for win32