Change makefile to make it compatible with older versions of gcc