Convert mandoc to LIBADD

While here remove the ugly LDMANDOC
Convert makefs to LIBADD

Add definition of libnetbsd in src.libnames.mk
Each time something links to sqlite3 it should link to pthread