fixed errors in generated makefile