Fixed makefile and added sudo for kill; fixes for compatibility with new core