Replaced strtok_r() calls by strtok().

The latter is more portable and can replace strtok_r in our case.