Fix makefile to be compatible with GNU Make v3