Some more work on memory limit and strcasecmp for win