fixed problems with Makefile