Fixed C vs C++ way of handling bitwise mask enum