some improvements to makefile