Really import mdocml version 1.12.3 and not a preliminary tarball.
Import mandoc 1.13.1
Update mandoc to 1.13.1
Add missing dependencies on pthread (sqlite being built with threadsafety on)
Update sqlite3 to 3.8.7.2