Added -pthread option to Makefile
Changed the C library headers to C++ headers
Added a different Message class that parses the message in the constructor