updated Makefile for newer versions