Update Makefile to fix compilation errors