Use strncat/strncpy instead of strlcat/strlcpy as they cause compile errors. Not sure what the proper functions to use are but these seem fine