Use engine version macro rather than relying on Setting class (#10928)