Maj makefile and fix typo in Socket