fix makefile for old c++ version