Clean up string comparisons.

Eliminate Q_strcasecmp, Q_strncasecmp and Q_stricmpn.
Ensure that Q_strncmp, Q_stricmp and Q_strnicmp handle NULL pointers.
Ensure that return values are correct (wrt strcmp & strcasecmp).

Case-insensitive comparison is not yet Unicode-aware.