Work around gcc problem to do with anonymous enums.