switch to use builtin bitflags!
fix demo compile error
Merge pull request #9 from andelf/master

Switch to use builtin bitflags! macro