message: Need to link to ws2_32 on windows
diff: @@ -2,6 +2,7 @@ import os
  import sys
  import shutil
  import subprocess
  +import platform
  extensions = ['parquet']
  @@ -24,12 +25,19 @@ for ext in extensions:
  extension_list += ' -DBUILD_{}_EXTENSION'.format(ext.upper())
  extension_list += " -DDUCKDB_BUILD_LIBRARY"
  +libraries = []
  +if platform.system() == 'Windows':
  + libraries += ['ws2_32']
  +
  +link_flags = ''
  +for libname in libraries:
  + link_flags += ' -l' + libname
  # check if we are doing a build from an existing DuckDB installation
  if 'DUCKDB_R_BINDIR' in os.environ and 'DUCKDB_R_CFLAGS' in os.environ and 'DUCKDB_R_LIBS' in os.environ:
  existing_duckdb_dir = os.environ['DUCKDB_R_BINDIR']
  compile_flags = os.environ['DUCKDB_R_CFLAGS'].replace('\\', '').replace(' ', ' ')
  - libraries = [x for x in os.environ['DUCKDB_R_LIBS'].split(' ') if len(x) > 0]
  + rlibs = [x for x in os.environ['DUCKDB_R_LIBS'].split(' ') if len(x) > 0]
  # use existing installation: set up Makevars
  with open_utf8(os.path.join('src', 'Makevars.in'), 'r') as f:
  @@ -39,9 +47,8 @@ if 'DUCKDB_R_BINDIR' in os.environ and 'DUCKDB_R_CFLAGS' in os.environ and 'DUCK
  compile_flags += extension_list
  # find libraries
  - result_libs = package_build.get_libraries(existing_duckdb_dir, libraries, extensions)
  + result_libs = package_build.get_libraries(existing_duckdb_dir, rlibs, extensions)
  - link_flags = ''
  for rlib in result_libs:
  libdir = rlib[0]
  libname = rlib[1]
  @@ -85,7 +92,10 @@ with open_utf8(os.path.join('src', 'Makevars.in'), 'r') as f:
  text = text.replace('{{ SOURCES }}', object_list)
  text = text.replace('{{ INCLUDES }}', include_list)
  +if len(libraries) == 0:
  text = text.replace('PKG_LIBS={{ LINK_FLAGS }}', '')
  +else:
  + text = text.replace('{{ LINK_FLAGS }}', link_flags.strip())
  # now write it to the output Makevars
  with open_utf8(os.path.join('src', 'Makevars'), 'w+') as f:
  