Define HAVE_STRLCPY and HAVE_STRLCAT to fix build error on osx