Enhanced raw_socket.c so that it doesn't cause warnings.