Fix a bunch of clang warnings
Adjust gcc/clang flags