change enum class to enum, as g++ doesnot support bitfields with enumerated classes with c++11 flag set