Add a portable version of strlcpy and strlcat and convert