use g_strcasecmp() instead of strcasecmp() which doesn't exist with MSVC (some versions, at least)