Promote SQLite3 as a privatelib as it will also be used by mandoc

While here ensure sqlite3 is using pread(2) and enable the suppot for FTS4
Forgot to update libmandoc
Add missing bits svn merge did not catch