Add tcp server, simplify makefile and build actions