Update bitflags and attributes for latest rust