Provide an implementation for strlcat and strlcpy and use them where appropriate