bugfixes in makefile