Check for strlcpy and libbsd during configure

Also properly substitute LTLIBICONV in Makefile.am.