A basic threaded http server using sockets in C