use strneq instead of strncmp
util: introduce strcaseeq/strncaseeq