Fix building for iOS
MSVC build fix following r211749

Avoid strndup()