Changed -lpthread to -pthread in Makefile. Should now build on both MacOSX and Ubuntu. ALso fixed bug in tcp_client since it was using the wrong deserialize method.