Fixed fd leak where files were unlinked w/o being closed first.
Now encode everything in UTF-8 instead of Latin9 since that's what
is gonna be used afterwards.
Fixed buffer overflow
Applied patch from bug #2737
Applied patch from bug #2756
Added patch from bug #2752
Make declarations in header match implemenations

Fixes #2789
Return nil where pointers are expected

Fixes #2790
Added IMAP annotations support - patch from #2688
Don't strip "comments" by default in headers. This is uterly braindead.
Update ChangeLog
Merge to 2.2.4
Imported Upstream version 2.2.5