helper: export append() function (it's the same as strlcat())