Implement strndup.
Match platform alignment.