Renamed ntohl and htonl functions to avoid conflicts.