Memory corruption bug fix.

Forgot to allocate space for the trailing zero of mEmoteName
that LLDataPackerBinaryBuffer writes apparently.
Also screwed up by passing sizeof(buffer) instead of 'size' :/.
Improve database repair log messages.

As a result of the previous commit, the hash values of all uploaded
animations changed. Repair database automatically and successfully
converted the database for this, but I noted that some log file output
could be improved.
Make LLMD5 errors fatal when compiled with libcwd.

These (rather fatal imho) error messages aren't even written to the log
file! Using std::cerr they appear in the terminal, between the fast
scrolling other debug output.

This commit will cause my viewer to core dump (or halt in gdb) when one
of these errors happens (and they do, I saw that).
Fix finalization of anim source md5s.
Allow for automatic database upgrade by incrementing a database "version".

The version isn't really incremental, whenever the version differs
from what it was the previous run, 'repair database' is being run.
This (therefore) even works when people use two viewers of different
version (except when they use those at the same time; but even that
isn't a disaster and would recover the very next run of any version).