Fix integer conversion warnings that will leak into applications using kNet.