Multithreaded web server using C in Linux