Borrow strlcpy compat code from vlc
Detects strlcpy is missing
Replace LGPL version of strlcpy by OpenBSD one which is BSD-licensed