emx: Pack boolean fields into flags