fix makefile for Clang and GCC