Only use getopt_port on Windows.