Fix Makefile to compile with CLANG
Fix compile warnings