properly detect system strlcpy and fix problem compiling on OSX Mavericks