Fixed UDP compile errors