implement strcasestr since mingw doesn't have it