additional makefile improvements
fix makefile for old c++ version