device: Use g_ascii_strcasecmp() for portability