If __APPLE__ defined, use strcasecmp