apply workaround for enum forward declaration fail on gcc