Using Data::Dumper added to test.pl for testing XS modules loading
Fixed removing socket at script exiting for resolving Issue #6.
Some refactoring in socket_lib