Add strcasestr compatability function
Older platforms unfortunately does not have strcasestr nor does it exist in the glib API, add fallback implementation.