few fixes to makefile