fix makefile to compile with clang or gcc under linux