Replace strnicmp() with strncasecmp()

Fixes link failure in current Cygwin, see
https://www.mail-archive.com/cygwin@cygwin.com/msg137048.html