Replace remaining instances of strdup with xstrdup.