common: Portability fix for logging.c.