Makefile fixed, setstatus and minimal base implemented