Update bundled sqlite3 to 3.7.17.

This should allow us some improvements using mmap (not used yet in pkgng
for the database)
Make gcc happy
get rid of deprecated pkg_name() and pkg_version()
Fix gcc warning
Fix time_t cast on i386 platform.

For i386 platform we need explicit conversion from int64_t to time_t.
New Release 1.1.0.b1
add REPOS_DIR to expected pkg -vv output
Do not leak custom repositories in pkg search tests
Make sure to install man3 pages in the right place
Fix wrong hash usage when adding licenses.

pkg_addlicense function tried to search for a license in files hash
instead of licenses hash causing thus memory corruption in a general
case.
pkg2ng: Hard-code FORCE_POST if bsd.pkgng.mk not available
Whitespace
Reset also the sqlite stmt when reseting the db iterator
Fix fetching audit files

Reported by:	Nikolai Lifanov <lifanov@mail.lifanov.com>
Do not propose to downgrade packages except if forced.
Fix space caculation during deletion

Reported by:	gpfiefer
Fixes:		#509
New Release 1.1.0.b2
Be explicit about why a port is being reinstalled

That helps tracking down solver failures
Properly order the loading of options and deps

That makes the solver always finding the option in the same order and
this stop keeping proposing always and always the same package to
reinstall
Fix a typo in repo configuration