fix Makefile error. add some utils, most of it is from Internet