Use _tolower instead of tolower if possible.