simplify compiler switch

ok with clang