add strtok_r for Windows compiling