Add compat.c/.h defining a compat tsocks mutex

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Reengineer logging and remove old show_msg

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Add torsocks.c/.h with logging initialization

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