tweak gcc compiler warnings (mostly for clang++)