Can't compile using winsock

Hi, I’m using winsock to listen for a udp server.
When running in the editor everything works fine, but during packaging I get this errors:

LogModuleManager:Warning: No filename provided for module ExampleDeviceProfileSelector
LogModuleManager:Warning: ModuleManager: Unable to load module 'ExampleDeviceProfileSelector' because the file 'C:/Program Files (x86)/Epic Games/4.14/Engine/Binaries/Win64/' was not found.
LogWindows:Error: begin: stack for UAT
LogWindows:Error: === Critical error: ===
LogWindows:Error: Fatal error: [File:D:\Build\++UE4+Release-4.14+Compile\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp] [Line: 83] 
LogWindows:Error: SECURE CRT: Invalid parameter detected.
LogWindows:Error: Expression: Unknown Function: Unknown. File: Unknown Line: 0

The code is here:

Can someone help?
Thank you! ^ ^