Make strdup cross platform