Add strcasecmp redefinition guard
More compilation warnings fixes