add Wall in Makefile, fix slave.c