Use my_strndup()

Because strndup() doesn't exit on Windows.