Fix return types for RawSocket methods.