Revert to old custom tolines function since strtok_r is not portable.
Merge pull request #487 from kanoi/master

ICA optional limit timing with short=N or long=N