tweak flags for clang and gcc