Makefile fixes & Clang reformat & CppCheck