common: include cctype for isdigit