Added work-around for missing `strndup()` on Windows with MS runtime.
Merge pull request #275 from woldan/master

Added work-around for missing `strndup()` on Windows with MS runtime.