cleanup makefile and hack/ scripts