fix a missing variable declaration needed by strtok_r on non-threaded builds

Evan Hunt requested to merge fix-strtok into master

Merge request reports