Fixed compile errors in flag_class.hpp