Remove strndup() implementation. If the platform has no strndup(), use malloc() + strlcpy().
Save ourselves from checking for null twice on platforms without strndup().