makefile: allow CC to be replaced
this allows building with clang by doing:
  CC=clang PREFIX=llvm- make
trim trailing spaces
fix clang compiler warnings