GCC 4.4 compatibility: lack of auto-conversion of typed enums.