fix makefile and add a simple init process