misc: rework of some compiler flags refs #193 refs #188