Separate libc call in specific files

No code has been changed, only function renaming in torsocks.c and a non
static function move at the end of torsocks.c

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