Add dist and build directories to gitignore
Flags register uses bitfield union