Applied fix for undefined symbol: swift_port_close