Add inttypes.h to base.h.
Add timestamp to the events.
Remove usless and uninitialized stuff from analyzer_smtp common event data.
Fix listener unregistration.