strndup is now called strdup_n.