Fix references of base libraries in some projects.
Remove unreferenced variable.
Fix: database optimization does not work.
Fix: parsing deletion message of direct messages.

close #72.