Make a macro to define an enum bitfield and operators.

It defines a typedef for an enum_bitfield; and bitwise operators on
the underlying flag enum, returning the bitfield type.