compile enum types.