added strsep(), which is a thread-safe replacement for strtok(),