Multithreaded Web Proxy in C