Remove duplicated zstrdup and zstrndup