Hi as per your suggestion i tried your version of proxy.
compilation process i used
./configure
make
sudo make install
anant@anant-Studio ~/proxychains $ proxychains4 telnet google.com 80
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.so
telnet: symbol lookup error: /usr/local/lib/libproxychains4.so: undefined symbol: pthread_once
other details
anant@anant-Studio ~ $ file /usr/bin/telnet.netkit
/usr/bin/telnet.netkit: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0xfe742dee4a474247f9ced957c33b768c2279dc4d, stripped
anant@anant-Studio ~ $ file which wget
/usr/bin/wget: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x503d2786854075a5b0e7ee079584b0728a2c006d, stripped
anant@anant-Studio ~ $ file /usr/local/lib/libproxychains4.so
/usr/local/lib/libproxychains4.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xd3a4ac770326dc94626169b7031078fcbc0ca804, not stripped
anant@anant-Studio ~ $ nm /lib/libpthread.so | grep pthread_once
nm: '/lib/libpthread.so': No such file
However i do have libpthread
anant@anant-Studio ~/proxychains $ file /lib32/libpthread-2.15.so
/lib32/libpthread-2.15.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=0x190143c6a1bdd750bab0147f02e8df71fe2e64e7, for GNU/Linux 2.6.24, not stripped