Fix: overload _exit and _Exit to cleanup library

Some application directly calls _exit (or exit_group on Linux) like SSH
does when a DNS name resolution fails. Those two functions don't call
the library destructor thus not cleaning the library cleanly.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>