Win32: Compilation fixes

* Use `strtok_r` from gnulib for Windows XP compatibility; see #1475 for more info
* Remove `S_ISLNK` check (doesn't exist on win32)