correct build issues in Makefile