Fixed makefile for newer versions of gcc