fix strncasecmp comparison signedness