daemon: fix mavericks strlcpy/strcat

Patch from macports: https://trac.macports.org/ticket/42845

Closes #25455.