update Makefile and slice.c to compile on Linux