Use g_ascii_strncasecmp() instead of strncasecmp() where applicable.