fix casecmp defines and uniformly use casecmp in code:

str[n]casecmp used to be brokenly defined as str[n]cmp.
even strnicmp ended up being defined as strcmp. should
be fixed now.