support platforms without err.h and strsep()