Remove unsafe building flags.