Clean up makefile. Use clang when available, otherwise fall back to gcc.
Fix uninitialized variable error.