fix scoped enum and fw declaration - only supported if c++11