build: do full flag handling for all compiler-type tools