Update to `bitflags` version 1.0
Created by: GabrielMajeri
This pull request updates the bitflags
crate to version 1.
The major change is that bitflags
now uses associated constants, so the uses of the various constants had to be prefixed with the bitflags
structure.