Made server multithreaded to take commands, compiles with warnings