Turn the errors for use of strstr and similar into conditional warnings.