Fix some build flags.