Copy bitflags! macro from libstd

* libcore can't export this macro