use g_strcasecmp() instead of strcasecmp() which doesn't exist with MSVC (some versions, at least), part 2
remove another unnecessary use of libgen.h